tx · 7T9jkZu8jtKpTs7qEq8bLWmd42z1oZx9sVwXSD8n7Zj9 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W: -0.01000000 Waves 2021.09.18 18:44 [1708688] smart account 3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W > SELF 0.00000000 Waves
{ "type": 13, "id": "7T9jkZu8jtKpTs7qEq8bLWmd42z1oZx9sVwXSD8n7Zj9", "fee": 1000000, "feeAssetId": null, "timestamp": 1631979887676, "version": 2, "chainId": 84, "sender": "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W", "senderPublicKey": "4Tgbt8hFUrh9Ljuh7RR6JU7FGF6Vy8J55djUNpJj8DvX", "proofs": [ "22QwnDbUPVv9qcdsuc95nVLtCTcGpnNoMFeqtxkeT6x9sZ1SVhrH5DxLmiSsnJDNYhRM8WkBodtwN1u5V6yUdS7N" ], "script": "base64:AAIFAAAAAAAAAQEIAhIFCgMICAEaBwoCYTESAWkaDAoCYTISBmFjdGlvbhoKCgJhMxIEdHlwZRoRCgJhNBILdmFsdWVBY3Rpb24aEwoCYTUSDXRyYW5zYWN0aW9uSWQaGAoCYTYSEmN1cnJlbnRXYWxsZXRCeXRlcxoPCgJhNxIJcGF5QW1vdW50GhMKAmE4Eg1jdXJyZW50V2FsbGV0Gg0KAmE5EgduYW1lTmZ0GhAKAmIxEgpoaXN0b3JpY0lkGg0KAmIyEgckbWF0Y2gwGgcKAmIzEgF0GhUKAmI0Eg9pbml0aWFsUG93ZXJOZnQaCwoCYjUSBXBvd2VyGg4KAmI2EghuZXdQb3dlcgAAAAAAAAABAAAAAmExAQAAAAVzdGFydAAAAAMAAAACYTIAAAACYTMAAAACYTQEAAAAAmE1CQACWAAAAAEIBQAAAAJhMQAAAA10cmFuc2FjdGlvbklkBAAAAAJhNggFAAAAAmExAAAABmNhbGxlcgQAAAACYTcJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAAJhMQAAAAhwYXlt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AgAAAAZwb3dlcl8FAAAAAmE4BQAAAAJiNgUAAAADbmlsAwMJAAAAAAAAAgUAAAACYTICAAAACFNlbmQgTkZUCQAAAAAAAAIFAAAAAmE4AgAAACMzTjdZbTFXSzNaYUZwN1ZmanZ6NktGUkdGNkF4c0FYbTc2VwcJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAB0FkZHJlc3MAAAABCQACWQAAAAEFAAAAAmEzAAAAAAAAAAABCQABmgAAAAEFAAAAAmE0BQAAAANuaWwJAAACAAAAAQIAAAAtQWxnbyBkZXUgZXJyYWRvISBWZXJpZmlxdWUgc3VhIHNvbGljaXRhw6fDo28hAAAAAD89M+c=", "height": 1708688, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A3m2diFbQatVT4aNRM4NL2SsJUpT1h8RRmHJQJcdrZYH Next: 7qDM7wP9mPK4cyHZAwrKbAygvyy7MVcsXgY2wjgwXPS7 Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | else if (if ((b == "Send NFT")) | |
46 | 46 | then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
47 | 47 | else false) | |
48 | - | then [ScriptTransfer(Address(fromBase58String(c)), 1, | |
48 | + | then [ScriptTransfer(Address(fromBase58String(c)), 1, toBytes(d))] | |
49 | 49 | else throw("Algo deu errado! Verifique sua solicitação!") | |
50 | 50 | } | |
51 | 51 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func start (b,c,d) = { | |
8 | 8 | let e = toBase58String(a.transactionId) | |
9 | 9 | let f = a.caller | |
10 | 10 | let g = value(a.payments[0].amount) | |
11 | 11 | let h = toBase58String(a.caller.bytes) | |
12 | 12 | let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e) | |
13 | 13 | let j = { | |
14 | 14 | let k = getInteger(this, "historicId") | |
15 | 15 | if ($isInstanceOf(k, "Int")) | |
16 | 16 | then { | |
17 | 17 | let l = k | |
18 | 18 | l | |
19 | 19 | } | |
20 | 20 | else 0 | |
21 | 21 | } | |
22 | 22 | let m = { | |
23 | 23 | let k = getInteger(this, ("List_NFT_" + c)) | |
24 | 24 | if ($isInstanceOf(k, "Int")) | |
25 | 25 | then { | |
26 | 26 | let l = k | |
27 | 27 | l | |
28 | 28 | } | |
29 | 29 | else 0 | |
30 | 30 | } | |
31 | 31 | let n = { | |
32 | 32 | let k = getInteger(this, ("power_" + h)) | |
33 | 33 | if ($isInstanceOf(k, "Int")) | |
34 | 34 | then { | |
35 | 35 | let l = k | |
36 | 36 | l | |
37 | 37 | } | |
38 | 38 | else 0 | |
39 | 39 | } | |
40 | 40 | let o = (n + m) | |
41 | 41 | if (if ((b == "Buy NFT")) | |
42 | 42 | then ((g / 100000) == m) | |
43 | 43 | else false) | |
44 | 44 | then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, m), IntegerEntry(("power_" + h), o)] | |
45 | 45 | else if (if ((b == "Send NFT")) | |
46 | 46 | then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W") | |
47 | 47 | else false) | |
48 | - | then [ScriptTransfer(Address(fromBase58String(c)), 1, | |
48 | + | then [ScriptTransfer(Address(fromBase58String(c)), 1, toBytes(d))] | |
49 | 49 | else throw("Algo deu errado! Verifique sua solicitação!") | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 |
github/deemru/w8io/03bedc9 23.60 ms ◑![]()