tx · DPNheDLF9Uwf9D2PL4VGz5fJi31WBddt3rhQRuXEDWqR 3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR: -0.01000000 Waves 2023.05.30 16:46 [2600779] smart account 3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR > SELF 0.00000000 Waves
{ "type": 13, "id": "DPNheDLF9Uwf9D2PL4VGz5fJi31WBddt3rhQRuXEDWqR", "fee": 1000000, "feeAssetId": null, "timestamp": 1685454404186, "version": 2, "chainId": 84, "sender": "3N1hrmiXcrfodNXHfoar8uNkBZEKPAGq5yR", "senderPublicKey": "GP66F4kgVMbC7uyGiB6JeXvJFRco3fTdGeaUFSmf7YbB", "proofs": [ "3RAmh5Zk6R6kekJoVsbpc5hZLCoxJvyywDiHuqRW7mQTQSvm7wS4JZsc4mjTZ35D8notafFeisKe64AAfKBDgkDp" ], "script": "base64:BgIGCAISABIAAQAIa2Fzc2V0SWQCB0Fzc2V0SUQCAWkBDXRva2VuSXNzdWFuY2UABARuYW1lAgpCZWJyYVRva2VuBA5sZW5kZXNjcmlwdGlvbgIPQmVicmEgYnkgS3JpbmdlBAhxdWFudGl0eQCgjQYECGRlY2ltYWxzAAMECmlzc3VlQmVicmEJAMIIBQUEbmFtZQUObGVuZGVzY3JpcHRpb24FCHF1YW50aXR5BQhkZWNpbWFscwYEB2Fzc2V0SWQJALgIAQUKaXNzdWVCZWJyYQQJa25ld1Rva2VuAgVUb2tlbgQLZ2V0TmV3VG9rZW4JARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAnQgCBQR0aGlzBQlrbmV3VG9rZW4CGUJlYnJhVG9rZW4gaXMgbm90IGRlZmluZWQJAMwIAgUKaXNzdWVCZWJyYQkAzAgCCQELQmluYXJ5RW50cnkCBQhrYXNzZXRJZAUHYXNzZXRJZAkAzAgCCQELU3RyaW5nRW50cnkCBQlrbmV3VG9rZW4IBQppc3N1ZUJlYnJhBG5hbWUFA25pbAFpAQtzZW5kZXJUb2tlbgAEAWYJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkBEUBleHRyTmF0aXZlKDEwNTIpAgUEdGhpcwUIa2Fzc2V0SWQCBWVycm9yCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgAUBQFmBQNuaWwAF6he+Q==", "height": 2600779, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EeZW34g4ZwfvWo8KUFyqaHnjC3yipgE5HFWWuKQZNghv Next: 5D8Tp3SoMxSTyPg5xzLTHkh2XTADTHrSY19pTv7wdVt6 Diff:
Old | New | Differences | |
---|---|---|---|
9 | 9 | let d = "Bebra by Kringe" | |
10 | 10 | let e = 100000 | |
11 | 11 | let f = 3 | |
12 | - | let g = true | |
13 | - | let h = Issue(c, d, e, f, g, unit, 1) | |
14 | - | let i = calculateAssetId(h) | |
15 | - | let j = "Token" | |
16 | - | let k = valueOrErrorMessage(getString(this, j), "BebraToken is not defined") | |
17 | - | [h, BinaryEntry(a, i), StringEntry(j, h.name)] | |
12 | + | let g = Issue(c, d, e, f, true) | |
13 | + | let h = calculateAssetId(g) | |
14 | + | let i = "Token" | |
15 | + | let j = valueOrErrorMessage(getString(this, i), "BebraToken is not defined") | |
16 | + | [g, BinaryEntry(a, h), StringEntry(i, g.name)] | |
18 | 17 | } | |
19 | 18 | ||
20 | 19 | ||
21 | 20 | ||
22 | 21 | @Callable(b) | |
23 | 22 | func senderToken () = { | |
24 | - | let | |
25 | - | [ScriptTransfer(b.caller, 20, | |
23 | + | let k = valueOrErrorMessage(getBinaryValue(this, a), "error") | |
24 | + | [ScriptTransfer(b.caller, 20, k)] | |
26 | 25 | } | |
27 | 26 | ||
28 | 27 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "AssetID" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func tokenIssuance () = { | |
8 | 8 | let c = "BebraToken" | |
9 | 9 | let d = "Bebra by Kringe" | |
10 | 10 | let e = 100000 | |
11 | 11 | let f = 3 | |
12 | - | let g = true | |
13 | - | let h = Issue(c, d, e, f, g, unit, 1) | |
14 | - | let i = calculateAssetId(h) | |
15 | - | let j = "Token" | |
16 | - | let k = valueOrErrorMessage(getString(this, j), "BebraToken is not defined") | |
17 | - | [h, BinaryEntry(a, i), StringEntry(j, h.name)] | |
12 | + | let g = Issue(c, d, e, f, true) | |
13 | + | let h = calculateAssetId(g) | |
14 | + | let i = "Token" | |
15 | + | let j = valueOrErrorMessage(getString(this, i), "BebraToken is not defined") | |
16 | + | [g, BinaryEntry(a, h), StringEntry(i, g.name)] | |
18 | 17 | } | |
19 | 18 | ||
20 | 19 | ||
21 | 20 | ||
22 | 21 | @Callable(b) | |
23 | 22 | func senderToken () = { | |
24 | - | let | |
25 | - | [ScriptTransfer(b.caller, 20, | |
23 | + | let k = valueOrErrorMessage(getBinaryValue(this, a), "error") | |
24 | + | [ScriptTransfer(b.caller, 20, k)] | |
26 | 25 | } | |
27 | 26 | ||
28 | 27 |
github/deemru/w8io/169f3d6 44.14 ms ◑