Skip to content

Commit 44c0752

Browse files
committed
feat: tests/code for claim
1 parent 125f43e commit 44c0752

File tree

6 files changed

+1319
-84
lines changed

6 files changed

+1319
-84
lines changed

contrib/core-contract-tests/contracts/sip-031-indirect.clar

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,20 @@
22
;; from an outside contract.
33

44
(define-public (update-recipient (new-recipient principal))
5-
(contract-call? 'ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.sip-031 update-recipient new-recipient)
6-
)
5+
(contract-call? 'ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.sip-031
6+
update-recipient new-recipient
7+
)
8+
)
9+
10+
;; Helper function to transfer STX within tests
11+
(define-public (transfer-stx
12+
(amount uint)
13+
(recipient principal)
14+
)
15+
(stx-transfer? amount tx-sender recipient)
16+
)
17+
18+
;; Helper function to get the STX balance of an address
19+
(define-read-only (get-balance (addr principal))
20+
(stx-get-balance addr)
21+
)

0 commit comments

Comments
 (0)