tx · 86sC3yH4G7wxSYr9UsYWeQveL85wSnD5NAk7w4umpkv1 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb: -0.00200000 Waves 2023.03.05 01:05 [2475899] smart account 3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb > SELF 0.00000000 Waves
{ "type": 13, "id": "86sC3yH4G7wxSYr9UsYWeQveL85wSnD5NAk7w4umpkv1", "fee": 200000, "feeAssetId": null, "timestamp": 1677967517286, "version": 2, "chainId": 84, "sender": "3MrQ4g9YCsAN2Wr4QUXiWAPhNPv7DGdQNWb", "senderPublicKey": "2VQGRNRWyFAZvjDtkgZwdZcTwZvBJJ61n8zJfYYxm5eK", "proofs": [ "5BScrkDyxiDAsQ1FjuVg3ZpkkBnWZNGFehU9fy5bFCA2mY1robaSsninASmL4HFm3w86fT312M6nfeANk8YZC429" ], "script": "base64:BgIPCAISBQoDCAgIEgQKAggIBQAOY29sbGVjdGlvbk5hbWUJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCDmNvbGxlY3Rpb25OYW1lAAZzeW1ib2wJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCBnN5bWJvbAALZGVzY3JpcHRpb24JARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCC2Rlc2NyaXB0aW9uAAt0b3RhbEFtb3VudAkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwILdG90YWxBbW91bnQBDXRyYW5zZmVyT3JOb3QCAnRvB2Fzc2V0SWQDCQAAAgUCdG8FBHRoaXMJAQtTdHJpbmdFbnRyeQICAAIACQEOU2NyaXB0VHJhbnNmZXIDBQJ0bwABBQdhc3NldElkAgFpAQRpbml0Aw5jb2xsZWN0aW9uTmFtZQZzeW1ib2wLZGVzY3JpcHRpb24DCQAAAggFAWkGY2FsbGVyBQR0aGlzCQDMCAIJAQtTdHJpbmdFbnRyeQICDmNvbGxlY3Rpb25OYW1lBQ5jb2xsZWN0aW9uTmFtZQkAzAgCCQELU3RyaW5nRW50cnkCAgZzeW1ib2wFBnN5bWJvbAkAzAgCCQELU3RyaW5nRW50cnkCAgtkZXNjcmlwdGlvbgULZGVzY3JpcHRpb24JAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsQW1vdW50AAAFA25pbAkAAgECCW9ubHkgZEFwcAFpAQRtaW50AgJ0bwh0b2tlblVSSQMJAAACCAUBaQZjYWxsZXIFBHRoaXMEB3Rva2VuSWQJAGQCBQt0b3RhbEFtb3VudAABBAdwcmVOYW1lCQCsAgIJAKwCAgUGc3ltYm9sAgEjCQCkAwEFB3Rva2VuSWQEBG5hbWUDCQBnAgAQCQCxAgEFB3ByZU5hbWUFB3ByZU5hbWUJAKQDAQUHdG9rZW5JZAQFYXNzZXQJAMMIBwUEbmFtZQULZGVzY3JpcHRpb24AAQAABwUEdW5pdAUGaGVpZ2h0BAdhc3NldElkCQC4CAEFBWFzc2V0BAl0b0FkZHJlc3MJAQdBZGRyZXNzAQkA2QQBBQJ0bwQIdHJhbnNmZXIJAQ10cmFuc2Zlck9yTm90AgUJdG9BZGRyZXNzBQdhc3NldElkAwkAAAIFCHRyYW5zZmVyBQh0cmFuc2ZlcgkAzAgCBQVhc3NldAkAzAgCBQh0cmFuc2ZlcgkAzAgCCQEMSW50ZWdlckVudHJ5AgILdG90YWxBbW91bnQFB3Rva2VuSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUEbmFtZQUIdG9rZW5VUkkFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECCW9ubHkgZEFwcACrKA2T", "height": 2475899, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F1K3EZZBf3KMLediA5nNHpFdq4hJTah6J91F7qq5HoB1 Next: DBeDRLq26FcBFVrFkdAJR5BVmcpDUyJFQXDPTDseyTkU Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | then { | |
27 | 27 | let j = (d + 1) | |
28 | 28 | let k = ((b + "#") + toString(j)) | |
29 | - | let l = if ((size(k) | |
29 | + | let l = if ((16 >= size(k))) | |
30 | 30 | then k | |
31 | 31 | else toString(j) | |
32 | - | [IntegerEntry("debug1", size(k)), StringEntry("debug2", k), IntegerEntry("totalAmount", j), StringEntry(l, i)] | |
32 | + | let m = Issue(l, c, 1, 0, false, unit, height) | |
33 | + | let g = calculateAssetId(m) | |
34 | + | let n = Address(fromBase58String(f)) | |
35 | + | let o = e(n, g) | |
36 | + | if ((o == o)) | |
37 | + | then [m, o, IntegerEntry("totalAmount", j), StringEntry(l, i)] | |
38 | + | else throw("Strict value is not equal to itself.") | |
33 | 39 | } | |
34 | 40 | else throw("only dApp") | |
35 | 41 |
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, "symbol") | |
7 | 7 | ||
8 | 8 | let c = getStringValue(this, "description") | |
9 | 9 | ||
10 | 10 | let d = getIntegerValue(this, "totalAmount") | |
11 | 11 | ||
12 | 12 | func e (f,g) = if ((f == this)) | |
13 | 13 | then StringEntry("", "") | |
14 | 14 | else ScriptTransfer(f, 1, g) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | @Callable(h) | |
18 | 18 | func init (a,b,c) = if ((h.caller == this)) | |
19 | 19 | then [StringEntry("collectionName", a), StringEntry("symbol", b), StringEntry("description", c), IntegerEntry("totalAmount", 0)] | |
20 | 20 | else throw("only dApp") | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | ||
24 | 24 | @Callable(h) | |
25 | 25 | func mint (f,i) = if ((h.caller == this)) | |
26 | 26 | then { | |
27 | 27 | let j = (d + 1) | |
28 | 28 | let k = ((b + "#") + toString(j)) | |
29 | - | let l = if ((size(k) | |
29 | + | let l = if ((16 >= size(k))) | |
30 | 30 | then k | |
31 | 31 | else toString(j) | |
32 | - | [IntegerEntry("debug1", size(k)), StringEntry("debug2", k), IntegerEntry("totalAmount", j), StringEntry(l, i)] | |
32 | + | let m = Issue(l, c, 1, 0, false, unit, height) | |
33 | + | let g = calculateAssetId(m) | |
34 | + | let n = Address(fromBase58String(f)) | |
35 | + | let o = e(n, g) | |
36 | + | if ((o == o)) | |
37 | + | then [m, o, IntegerEntry("totalAmount", j), StringEntry(l, i)] | |
38 | + | else throw("Strict value is not equal to itself.") | |
33 | 39 | } | |
34 | 40 | else throw("only dApp") | |
35 | 41 | ||
36 | 42 |
github/deemru/w8io/169f3d6 21.84 ms ◑