tx · CrLjU74VvcW8L5Nfn98tJjAp7DgP6YQJBTu7QvQZGVjV
3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves
2021.06.03 06:18 [1553634] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{
"type": 13,
"id": "CrLjU74VvcW8L5Nfn98tJjAp7DgP6YQJBTu7QvQZGVjV",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1622690305175,
"version": 2,
"chainId": 84,
"sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB",
"senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb",
"proofs": [
"41Vm7LwuHBSCNXQHJpt2UwBMVG4SAsSim96hZNQznq2j5dEqB7PvCtQbTcECAw5upbD6uLMx51w1bMGJPSBUW8ZL"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAAQbGlzdFRvU3RyaW5nRnVuYwAAAAEAAAALSW50ZWdlckxpc3QKAQAAAAxsaXN0VG9TdHJpbmcAAAACAAAAB2ludExpc3QAAAABaQkABE0AAAACBQAAAAdpbnRMaXN0BQAAAAFpBAAAAAskbGlzdDIyMjI2MAUAAAALSW50ZWdlckxpc3QEAAAACyRzaXplMjIyMjYwCQABkAAAAAEFAAAACyRsaXN0MjIyMjYwBAAAAAskYWNjMDIyMjI2MAUAAAADbmlsAwkAAAAAAAACBQAAAAskc2l6ZTIyMjI2MAAAAAAAAAAAAAUAAAALJGFjYzAyMjIyNjAEAAAACyRhY2MxMjIyMjYwCQEAAAAMbGlzdFRvU3RyaW5nAAAAAgUAAAALJGFjYzAyMjIyNjAJAAGRAAAAAgUAAAALJGxpc3QyMjIyNjAAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMjIyMjYwAAAAAAAAAAABBQAAAAskYWNjMTIyMjI2MAQAAAALJGFjYzIyMjIyNjAJAQAAAAxsaXN0VG9TdHJp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XT09PgkAAaQAAAABCQABkQAAAAIFAAAABGxpc3QAAAAAAAAAAAIJAARMAAAAAgUAAAAFYXNzZXQFAAAAA25pbAkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tledViyrM=",
"height": 1553634,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 34CWTMuH3omV1EEKnQ5qrtPN2ZTr1sW6dXGPwdHBenqg
Next: 6XiHx8ncfMxUg2yuRg2qhLwemFmnEkrJGCAVb4bRxTpn
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func listToStringFunc (IntegerList) = { |
---|
5 | | - | func listToString (strList,i) = (strList :+ toString(IntegerList[i])) |
---|
| 5 | + | func listToString (intList,i) = (intList :+ i) |
---|
6 | 6 | | |
---|
7 | | - | let $list249287 = IntegerList |
---|
8 | | - | let $size249287 = size($list249287) |
---|
9 | | - | let $acc0249287 = nil |
---|
10 | | - | if (($size249287 == 0)) |
---|
11 | | - | then $acc0249287 |
---|
| 7 | + | let $list222260 = IntegerList |
---|
| 8 | + | let $size222260 = size($list222260) |
---|
| 9 | + | let $acc0222260 = nil |
---|
| 10 | + | if (($size222260 == 0)) |
---|
| 11 | + | then $acc0222260 |
---|
12 | 12 | | else { |
---|
13 | | - | let $acc1249287 = listToString($acc0249287, $list249287[0]) |
---|
14 | | - | if (($size249287 == 1)) |
---|
15 | | - | then $acc1249287 |
---|
| 13 | + | let $acc1222260 = listToString($acc0222260, $list222260[0]) |
---|
| 14 | + | if (($size222260 == 1)) |
---|
| 15 | + | then $acc1222260 |
---|
16 | 16 | | else { |
---|
17 | | - | let $acc2249287 = listToString($acc1249287, $list249287[1]) |
---|
18 | | - | if (($size249287 == 2)) |
---|
19 | | - | then $acc2249287 |
---|
| 17 | + | let $acc2222260 = listToString($acc1222260, $list222260[1]) |
---|
| 18 | + | if (($size222260 == 2)) |
---|
| 19 | + | then $acc2222260 |
---|
20 | 20 | | else { |
---|
21 | | - | let $acc3249287 = listToString($acc2249287, $list249287[2]) |
---|
22 | | - | if (($size249287 == 3)) |
---|
23 | | - | then $acc3249287 |
---|
| 21 | + | let $acc3222260 = listToString($acc2222260, $list222260[2]) |
---|
| 22 | + | if (($size222260 == 3)) |
---|
| 23 | + | then $acc3222260 |
---|
24 | 24 | | else { |
---|
25 | | - | let $acc4249287 = listToString($acc3249287, $list249287[3]) |
---|
| 25 | + | let $acc4222260 = listToString($acc3222260, $list222260[3]) |
---|
26 | 26 | | throw("List size exceed 3") |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
|
39 | 39 | | let list = listToStringFunc([2, 3, 4]) |
---|
40 | 40 | | if ((list == list)) |
---|
41 | 41 | | then if ((count == 1)) |
---|
42 | | - | then throw(("list_1==>" + list[3])) |
---|
| 42 | + | then throw(((((("/list[0]==>" + toString(list[0])) + "/list[1]==>") + toString(list[1])) + "/list[2]==>") + toString(list[2]))) |
---|
43 | 43 | | else [asset] |
---|
44 | 44 | | else throw("Strict value is not equal to itself.") |
---|
45 | 45 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func listToStringFunc (IntegerList) = { |
---|
5 | | - | func listToString (strList,i) = (strList :+ toString(IntegerList[i])) |
---|
| 5 | + | func listToString (intList,i) = (intList :+ i) |
---|
6 | 6 | | |
---|
7 | | - | let $list249287 = IntegerList |
---|
8 | | - | let $size249287 = size($list249287) |
---|
9 | | - | let $acc0249287 = nil |
---|
10 | | - | if (($size249287 == 0)) |
---|
11 | | - | then $acc0249287 |
---|
| 7 | + | let $list222260 = IntegerList |
---|
| 8 | + | let $size222260 = size($list222260) |
---|
| 9 | + | let $acc0222260 = nil |
---|
| 10 | + | if (($size222260 == 0)) |
---|
| 11 | + | then $acc0222260 |
---|
12 | 12 | | else { |
---|
13 | | - | let $acc1249287 = listToString($acc0249287, $list249287[0]) |
---|
14 | | - | if (($size249287 == 1)) |
---|
15 | | - | then $acc1249287 |
---|
| 13 | + | let $acc1222260 = listToString($acc0222260, $list222260[0]) |
---|
| 14 | + | if (($size222260 == 1)) |
---|
| 15 | + | then $acc1222260 |
---|
16 | 16 | | else { |
---|
17 | | - | let $acc2249287 = listToString($acc1249287, $list249287[1]) |
---|
18 | | - | if (($size249287 == 2)) |
---|
19 | | - | then $acc2249287 |
---|
| 17 | + | let $acc2222260 = listToString($acc1222260, $list222260[1]) |
---|
| 18 | + | if (($size222260 == 2)) |
---|
| 19 | + | then $acc2222260 |
---|
20 | 20 | | else { |
---|
21 | | - | let $acc3249287 = listToString($acc2249287, $list249287[2]) |
---|
22 | | - | if (($size249287 == 3)) |
---|
23 | | - | then $acc3249287 |
---|
| 21 | + | let $acc3222260 = listToString($acc2222260, $list222260[2]) |
---|
| 22 | + | if (($size222260 == 3)) |
---|
| 23 | + | then $acc3222260 |
---|
24 | 24 | | else { |
---|
25 | | - | let $acc4249287 = listToString($acc3249287, $list249287[3]) |
---|
| 25 | + | let $acc4222260 = listToString($acc3222260, $list222260[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 list = listToStringFunc([2, 3, 4]) |
---|
40 | 40 | | if ((list == list)) |
---|
41 | 41 | | then if ((count == 1)) |
---|
42 | | - | then throw(("list_1==>" + list[3])) |
---|
| 42 | + | then throw(((((("/list[0]==>" + toString(list[0])) + "/list[1]==>") + toString(list[1])) + "/list[2]==>") + toString(list[2]))) |
---|
43 | 43 | | else [asset] |
---|
44 | 44 | | else throw("Strict value is not equal to itself.") |
---|
45 | 45 | | } |
---|
46 | 46 | | |
---|
47 | 47 | | |
---|
48 | 48 | | @Verifier(tx) |
---|
49 | 49 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
50 | 50 | | |
---|