tx · 6gPQ9QHqFZtsojcrwfccHMAMahdVZm9mJ4Jvzp5UETvz 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves 2021.06.03 05:21 [1553567] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{ "type": 13, "id": "6gPQ9QHqFZtsojcrwfccHMAMahdVZm9mJ4Jvzp5UETvz", "fee": 1400000, "feeAssetId": null, "timestamp": 1622686904123, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "34AVJuRYBBv4qmL84vS273UMiJZw8Hh6z2dF7v5AWyUkebBvik4XL5PN8o8HY4BGb8DwL5PeZZwCenM1Pvgn3pCm" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAAQbGlzdFRvU3RyaW5nRnVuYwAAAAEAAAALSW50ZWdlckxpc3QKAQAAAAxsaXN0VG9TdHJpbmcAAAACAAAAA2FjYwAAAAFpCQAETQAAAAIFAAAAA2FjYwkAAaQAAAABCQABkQAAAAIFAAAAC0ludGVnZXJMaXN0BQAAAAFpBAAAAAskbGlzdDI0MjI4MAUAAAALSW50ZWdlckxpc3QEAAAACyRzaXplMjQyMjgwCQABkAAAAAEFAAAACyRsaXN0MjQyMjgwBAAAAAskYWNjMDI0MjI4MAUAAAADbmlsAwkAAAAAAAACBQAAAAskc2l6ZTI0MjI4MAAAAAAAAAAAAAUAAAALJGFjYzAyNDIyODAEAAAACyRhY2MxMjQyMjgwCQEAAAAMbGlzdFRvU3RyaW5nAAAAAgUAAAALJGFjYzAyNDIyODAJAAGRAAAAAgUAAAALJGxpc3QyNDIyODAAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMjQyMjgwAAAAAAAAAAABBQAAAAskYWNjMTI0MjI4MAQAAAALJGFjYzIyNDIyODAJ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dCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmM5KXw", "height": 1553567, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6o29o3F6Ua9zfeNsuzZwiNeCUndoMnKBQbR66kmkPKPs Next: HukkxP9SGBGLdk7pYSCdWRwKzaeoJv4sAxpW3QzDXnTH Diff:
Old | New | Differences | |
---|---|---|---|
37 | 37 | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
38 | 38 | let assetId = calculateAssetId(asset) | |
39 | 39 | let listToString = listToStringFunc([2, 3, 4]) | |
40 | - | if ((count == 1)) | |
41 | - | then throw(((((listToString[0] + ",") + listToString[1]) + ",") + listToString[2])) | |
42 | - | else [asset] | |
40 | + | if ((listToString == listToString)) | |
41 | + | then if ((count == 1)) | |
42 | + | then throw(("list_1==>" + listToString[0])) | |
43 | + | else [asset] | |
44 | + | else throw("Strict value is not equal to itself.") | |
43 | 45 | } | |
44 | 46 | ||
45 | 47 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func listToStringFunc (IntegerList) = { | |
5 | 5 | func listToString (acc,i) = (acc :+ toString(IntegerList[i])) | |
6 | 6 | ||
7 | 7 | let $list242280 = IntegerList | |
8 | 8 | let $size242280 = size($list242280) | |
9 | 9 | let $acc0242280 = nil | |
10 | 10 | if (($size242280 == 0)) | |
11 | 11 | then $acc0242280 | |
12 | 12 | else { | |
13 | 13 | let $acc1242280 = listToString($acc0242280, $list242280[0]) | |
14 | 14 | if (($size242280 == 1)) | |
15 | 15 | then $acc1242280 | |
16 | 16 | else { | |
17 | 17 | let $acc2242280 = listToString($acc1242280, $list242280[1]) | |
18 | 18 | if (($size242280 == 2)) | |
19 | 19 | then $acc2242280 | |
20 | 20 | else { | |
21 | 21 | let $acc3242280 = listToString($acc2242280, $list242280[2]) | |
22 | 22 | if (($size242280 == 3)) | |
23 | 23 | then $acc3242280 | |
24 | 24 | else { | |
25 | 25 | let $acc4242280 = listToString($acc3242280, $list242280[3]) | |
26 | 26 | throw("List size exceed 3") | |
27 | 27 | } | |
28 | 28 | } | |
29 | 29 | } | |
30 | 30 | } | |
31 | 31 | } | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | 35 | func call () = { | |
36 | 36 | let count = 1 | |
37 | 37 | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
38 | 38 | let assetId = calculateAssetId(asset) | |
39 | 39 | let listToString = listToStringFunc([2, 3, 4]) | |
40 | - | if ((count == 1)) | |
41 | - | then throw(((((listToString[0] + ",") + listToString[1]) + ",") + listToString[2])) | |
42 | - | else [asset] | |
40 | + | if ((listToString == listToString)) | |
41 | + | then if ((count == 1)) | |
42 | + | then throw(("list_1==>" + listToString[0])) | |
43 | + | else [asset] | |
44 | + | else throw("Strict value is not equal to itself.") | |
43 | 45 | } | |
44 | 46 | ||
45 | 47 | ||
46 | 48 | @Verifier(tx) | |
47 | 49 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
48 | 50 |
github/deemru/w8io/026f985 23.88 ms ◑