Skip to content

Commit 25c2b14

Browse files
committed
fix: also validate tx-sender in auth check
1 parent e75e3b8 commit 25c2b14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stackslib/src/chainstate/stacks/boot/sip-031.clar

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@
7171
)
7272

7373
(define-private (validate-caller)
74-
(ok (asserts! (is-eq contract-caller (var-get recipient)) (err ERR_NOT_ALLOWED)))
74+
(begin
75+
(asserts! (is-eq contract-caller (var-get recipient)) (err ERR_NOT_ALLOWED))
76+
(asserts! (is-eq tx-sender (var-get recipient)) (err ERR_NOT_ALLOWED))
77+
(ok true))
7578
)
7679

7780
;; Returns the *total* vested amount at `burn-height`, i.e.

0 commit comments

Comments
 (0)