tx · bYKEUBeV2fTpSkdzW3X3LZcPhpaWHWLJqyosfHHcGCR 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb: -0.00100000 Waves 2023.03.05 00:01 [2475829] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves
{ "type": 13, "id": "bYKEUBeV2fTpSkdzW3X3LZcPhpaWHWLJqyosfHHcGCR", "fee": 100000, "feeAssetId": null, "timestamp": 1677963710129, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "2dHwo3iAQqXkWQ718hvj3DthKX2kZgDWiAnW275NFejGM3zaoeCA2bL3ZhfMe7VAJ12w1PdfRPc69vJHkcFGiy4e" ], "script": "base64:BgIOCAISBAoCCAgSBAoCCAgDAA5jb2xsZWN0aW9uTmFtZQkBEUBleHRyTmF0aXZlKDEwNTMpAgUEdGhpcwIOY29sbGVjdGlvbk5hbWUAC2Rlc2NyaXB0aW9uCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAgtkZXNjcmlwdGlvbgALdG90YWxBbW91bnQJARFAZXh0ck5hdGl2ZSgxMDUwKQIFBHRoaXMCC3RvdGFsQW1vdW50AgFpAQRpbml0Ag5jb2xsZWN0aW9uTmFtZQtkZXNjcmlwdGlvbgMJAAACCAUBaQZjYWxsZXIFBHRoaXMJAMwIAgkBC1N0cmluZ0VudHJ5AgIOY29sbGVjdGlvbk5hbWUFDmNvbGxlY3Rpb25OYW1lCQDMCAIJAQtTdHJpbmdFbnRyeQICC2Rlc2NyaXB0aW9uBQtkZXNjcmlwdGlvbgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQAAAUDbmlsCQACAQIJb25seSBkQXBwAWkBBG1pbnQCAnRvCHRva2VuVVJJAwkAAAIIBQFpBmNhbGxlcgUEdGhpcwQHdG9rZW5JZAkAZAIFC3RvdGFsQW1vdW50AAEEBG5hbWUJAKwCAgkArAICBQ5jb2xsZWN0aW9uTmFtZQIBIwkApAMBBQd0b2tlbklkBAVhc3NldAkAwwgHBQRuYW1lBQtkZXNjcmlwdGlvbgABAAAHBQR1bml0BQZoZWlnaHQEB2Fzc2V0SWQJALgIAQUFYXNzZXQECXRvQWRkcmVzcwkApwgBAwkAAAIJALECAQUCdG8AIwkA2QQBBQJ0bwkA2wQBBQJ0bwkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDBQl0b0FkZHJlc3MAAQUHYXNzZXRJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQFB3Rva2VuSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUEbmFtZQUIdG9rZW5VUkkFA25pbAkAAgECCW9ubHkgZEFwcAAOjrjR", "height": 2475829, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HRQLv2DZ5TwWczCYZwpjV5TLxqr8DV3DEFCuKXE7DFS5 Next: 2M8GBSTEThXss3wCgToCcdfeynAjL2Lda7SriUoAsUAY Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | let h = ((a + "#") + toString(g)) | |
22 | 22 | let i = Issue(h, b, 1, 0, false, unit, height) | |
23 | 23 | let j = calculateAssetId(i) | |
24 | - | let k = addressFromPublicKey(base58'to') | |
24 | + | let k = addressFromPublicKey(if ((size(e) == 35)) | |
25 | + | then fromBase58String(e) | |
26 | + | else fromBase64String(e)) | |
25 | 27 | [ScriptTransfer(k, 1, j), IntegerEntry("totalAmount", g), StringEntry(h, f)] | |
26 | 28 | } | |
27 | 29 | else throw("only dApp") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = getStringValue(this, "collectionName") | |
5 | 5 | ||
6 | 6 | let b = getStringValue(this, "description") | |
7 | 7 | ||
8 | 8 | let c = getIntegerValue(this, "totalAmount") | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func init (a,b) = if ((d.caller == this)) | |
12 | 12 | then [StringEntry("collectionName", a), StringEntry("description", b), IntegerEntry("totalAmount", 0)] | |
13 | 13 | else throw("only dApp") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(d) | |
18 | 18 | func mint (e,f) = if ((d.caller == this)) | |
19 | 19 | then { | |
20 | 20 | let g = (c + 1) | |
21 | 21 | let h = ((a + "#") + toString(g)) | |
22 | 22 | let i = Issue(h, b, 1, 0, false, unit, height) | |
23 | 23 | let j = calculateAssetId(i) | |
24 | - | let k = addressFromPublicKey(base58'to') | |
24 | + | let k = addressFromPublicKey(if ((size(e) == 35)) | |
25 | + | then fromBase58String(e) | |
26 | + | else fromBase64String(e)) | |
25 | 27 | [ScriptTransfer(k, 1, j), IntegerEntry("totalAmount", g), StringEntry(h, f)] | |
26 | 28 | } | |
27 | 29 | else throw("only dApp") | |
28 | 30 | ||
29 | 31 |
github/deemru/w8io/026f985 20.99 ms ◑