@@ -42,11 +42,11 @@ const FIRST_CLASS_TOKENS: &str = "(define-fungible-token stackaroos)
42
42
(define-public (mint-after (block-to-release uint))
43
43
(if (>= block-height block-to-release)
44
44
(faucet)
45
- (err \" must be in the future \" )))
45
+ (err u100 )))
46
46
(define-public (burn (amount uint) (p principal))
47
47
(ft-burn? stackaroos amount p))
48
- (begin (ft-mint? stackaroos u10000 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)
49
- (ft-mint? stackaroos u200 'SM2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQVX8X0G)
48
+ (begin (is-ok ( ft-mint? stackaroos u10000 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR) )
49
+ (is-ok ( ft-mint? stackaroos u200 'SM2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQVX8X0G) )
50
50
(ft-mint? stackaroos u4 .tokens))" ;
51
51
52
52
const ASSET_NAMES : & str =
@@ -80,15 +80,15 @@ const ASSET_NAMES: &str =
80
80
(nft-burn? names name p))
81
81
(define-public (try-bad-transfers)
82
82
(begin
83
- (contract-call? .tokens my-token-transfer burn-address u50000)
84
- (contract-call? .tokens my-token-transfer burn-address u1000)
85
- (contract-call? .tokens my-token-transfer burn-address u1)
83
+ (is-ok ( contract-call? .tokens my-token-transfer burn-address u50000) )
84
+ (is-ok ( contract-call? .tokens my-token-transfer burn-address u1000) )
85
+ (is-ok ( contract-call? .tokens my-token-transfer burn-address u1) )
86
86
(err u0)))
87
87
(define-public (try-bad-transfers-but-ok)
88
88
(begin
89
- (contract-call? .tokens my-token-transfer burn-address u50000)
90
- (contract-call? .tokens my-token-transfer burn-address u1000)
91
- (contract-call? .tokens my-token-transfer burn-address u1)
89
+ (is-ok ( contract-call? .tokens my-token-transfer burn-address u50000) )
90
+ (is-ok ( contract-call? .tokens my-token-transfer burn-address u1000) )
91
+ (is-ok ( contract-call? .tokens my-token-transfer burn-address u1) )
92
92
(ok 0)))
93
93
(define-public (transfer (name int) (recipient principal))
94
94
(let ((transfer-name-result (nft-transfer? names name tx-sender recipient))
@@ -97,7 +97,7 @@ const ASSET_NAMES: &str =
97
97
(begin (unwrap! transfer-name-result transfer-name-result)
98
98
(unwrap! token-to-contract-result token-to-contract-result)
99
99
(unwrap! contract-to-burn-result contract-to-burn-result)
100
- (ok 0 ))))
100
+ (ok true ))))
101
101
(define-public (register
102
102
(recipient-principal principal)
103
103
(name int)
0 commit comments