tx · 9E6Xd63K6Frp2JPTzrmVzMu3Yvp4UKxpgqS7HQUKEgh8
3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB: -0.01400000 Waves
2021.06.03 13:20 [1554054] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves
{
"type": 13,
"id": "9E6Xd63K6Frp2JPTzrmVzMu3Yvp4UKxpgqS7HQUKEgh8",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1622715626325,
"version": 2,
"chainId": 84,
"sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB",
"senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb",
"proofs": [
"5YVBKEYbVTJe1Gkkxf32H3HeHe3vb38ma6QHAWm7SxHDot2agmsBRLXKwkFGU1hKPN1uTVUr9hNrzZ1ppRribCR7"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAQEAAAAJbGlzdFRvU3RyAAAAAQAAAANhcnIKAQAAAAhmb2xkRnVuYwAAAAIAAAAEbGlzdAAAAAFhCQAETQAAAAIFAAAABGxpc3QJAQAAAA1wYXJzZUludFZhbHVlAAAAAQUAAAABYQQAAAALJGxpc3QxOTIyMTgFAAAAA2FycgQAAAALJHNpemUxOTIyMTgJAAGQAAAAAQUAAAALJGxpc3QxOTIyMTgEAAAACyRhY2MwMTkyMjE4BQAAAANuaWwDCQAAAAAAAAIFAAAACyRzaXplMTkyMjE4AAAAAAAAAAAABQAAAAskYWNjMDE5MjIxOAQAAAALJGFjYzExOTIyMTgJAQAAAAhmb2xkRnVuYwAAAAIFAAAACyRhY2MwMTkyMjE4CQABkQAAAAIFAAAACyRsaXN0MTkyMjE4AAAAAAAAAAAAAwkAAAAAAAACBQAAAAskc2l6ZTE5MjIxOAAAAAAAAAAAAQUAAAALJGFjYzExOTIyMTgEAAAACyRhY2MyMTkyMjE4CQEAAAAIZm9sZEZ1bmMAAAACBQAAAAskYWNjMTE5MjIxOAkAAZEAAAACBQAAAAskbGlzdDE5MjIxOAAAAAAAAAAAAQMJAAAAAAAAAgUAAAALJHNpemUxOTIyMTgAAAAAAAAAAAIFAAAACyRhY2MyMTkyMjE4BAAAAAskYWNjMzE5MjIxOAkBAAAACGZvbGRGdW5jAAAAAgUAAAALJGFjYzIxOTIyMTgJAAGRAAAAAgUAAAALJGxpc3QxOTIyMTgAAAAAAAAAAAIDCQAAAAAAAAIFAAAACyRzaXplMTkyMjE4AAAAAAAAAAADBQAAAAskYWNjMzE5MjIxOAQAAAALJGFjYzQxOTIyMTgJAQAAAAhmb2xkRnVuYwAAAAIFAAAACyRhY2MzMTkyMjE4CQABkQAAAAIFAAAACyRsaXN0MTkyMjE4AAAAAAAAAAADCQAAAgAAAAECAAAAEkxpc3Qgc2l6ZSBleGNlZWQgMwAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWNvdW50AAAAAAAAAAABBAAAAAdzdHJMaXN0CQEAAAAJbGlzdFRvU3RyAAAAAQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMwUAAAADbmlsAwkAAAAAAAACBQAAAAVjb3VudAAAAAAAAAAAAQkAAAIAAAABCQABLAAAAAICAAAADHN0ckxpc3QsMD09PgkAAaQAAAABCQABkQAAAAIFAAAAB3N0ckxpc3QAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA2ludAAAAAAAAAAAAQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXk7+dlg",
"height": 1554054,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8kgTW8Yn9Gkzxu48u6EacyUV76LQpRo1vdijoDmrjqkg
Next: GwWNB1rwifJaMufyxCAbEwwHRoALT87F91BVDVKj5GCT
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func listToStr (arr) = { |
---|
5 | | - | func foldFunc (list,a) = parseIntValue(a) :: list |
---|
| 5 | + | func foldFunc (list,a) = (list :+ parseIntValue(a)) |
---|
6 | 6 | | |
---|
7 | | - | let $list191217 = arr |
---|
8 | | - | let $size191217 = size($list191217) |
---|
9 | | - | let $acc0191217 = nil |
---|
10 | | - | if (($size191217 == 0)) |
---|
11 | | - | then $acc0191217 |
---|
| 7 | + | let $list192218 = arr |
---|
| 8 | + | let $size192218 = size($list192218) |
---|
| 9 | + | let $acc0192218 = nil |
---|
| 10 | + | if (($size192218 == 0)) |
---|
| 11 | + | then $acc0192218 |
---|
12 | 12 | | else { |
---|
13 | | - | let $acc1191217 = foldFunc($acc0191217, $list191217[0]) |
---|
14 | | - | if (($size191217 == 1)) |
---|
15 | | - | then $acc1191217 |
---|
| 13 | + | let $acc1192218 = foldFunc($acc0192218, $list192218[0]) |
---|
| 14 | + | if (($size192218 == 1)) |
---|
| 15 | + | then $acc1192218 |
---|
16 | 16 | | else { |
---|
17 | | - | let $acc2191217 = foldFunc($acc1191217, $list191217[1]) |
---|
18 | | - | if (($size191217 == 2)) |
---|
19 | | - | then $acc2191217 |
---|
| 17 | + | let $acc2192218 = foldFunc($acc1192218, $list192218[1]) |
---|
| 18 | + | if (($size192218 == 2)) |
---|
| 19 | + | then $acc2192218 |
---|
20 | 20 | | else { |
---|
21 | | - | let $acc3191217 = foldFunc($acc2191217, $list191217[2]) |
---|
22 | | - | if (($size191217 == 3)) |
---|
23 | | - | then $acc3191217 |
---|
| 21 | + | let $acc3192218 = foldFunc($acc2192218, $list192218[2]) |
---|
| 22 | + | if (($size192218 == 3)) |
---|
| 23 | + | then $acc3192218 |
---|
24 | 24 | | else { |
---|
25 | | - | let $acc4191217 = foldFunc($acc3191217, $list191217[3]) |
---|
| 25 | + | let $acc4192218 = foldFunc($acc3192218, $list192218[3]) |
---|
26 | 26 | | throw("List size exceed 3") |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func listToStr (arr) = { |
---|
5 | | - | func foldFunc (list,a) = parseIntValue(a) :: list |
---|
| 5 | + | func foldFunc (list,a) = (list :+ parseIntValue(a)) |
---|
6 | 6 | | |
---|
7 | | - | let $list191217 = arr |
---|
8 | | - | let $size191217 = size($list191217) |
---|
9 | | - | let $acc0191217 = nil |
---|
10 | | - | if (($size191217 == 0)) |
---|
11 | | - | then $acc0191217 |
---|
| 7 | + | let $list192218 = arr |
---|
| 8 | + | let $size192218 = size($list192218) |
---|
| 9 | + | let $acc0192218 = nil |
---|
| 10 | + | if (($size192218 == 0)) |
---|
| 11 | + | then $acc0192218 |
---|
12 | 12 | | else { |
---|
13 | | - | let $acc1191217 = foldFunc($acc0191217, $list191217[0]) |
---|
14 | | - | if (($size191217 == 1)) |
---|
15 | | - | then $acc1191217 |
---|
| 13 | + | let $acc1192218 = foldFunc($acc0192218, $list192218[0]) |
---|
| 14 | + | if (($size192218 == 1)) |
---|
| 15 | + | then $acc1192218 |
---|
16 | 16 | | else { |
---|
17 | | - | let $acc2191217 = foldFunc($acc1191217, $list191217[1]) |
---|
18 | | - | if (($size191217 == 2)) |
---|
19 | | - | then $acc2191217 |
---|
| 17 | + | let $acc2192218 = foldFunc($acc1192218, $list192218[1]) |
---|
| 18 | + | if (($size192218 == 2)) |
---|
| 19 | + | then $acc2192218 |
---|
20 | 20 | | else { |
---|
21 | | - | let $acc3191217 = foldFunc($acc2191217, $list191217[2]) |
---|
22 | | - | if (($size191217 == 3)) |
---|
23 | | - | then $acc3191217 |
---|
| 21 | + | let $acc3192218 = foldFunc($acc2192218, $list192218[2]) |
---|
| 22 | + | if (($size192218 == 3)) |
---|
| 23 | + | then $acc3192218 |
---|
24 | 24 | | else { |
---|
25 | | - | let $acc4191217 = foldFunc($acc3191217, $list191217[3]) |
---|
| 25 | + | let $acc4192218 = foldFunc($acc3192218, $list192218[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 strList = listToStr(["1", "2", "3"]) |
---|
38 | 38 | | if ((count == 1)) |
---|
39 | 39 | | then throw(("strList,0==>" + toString(strList[0]))) |
---|
40 | 40 | | else [IntegerEntry("int", 1)] |
---|
41 | 41 | | } |
---|
42 | 42 | | |
---|
43 | 43 | | |
---|
44 | 44 | | @Verifier(tx) |
---|
45 | 45 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
46 | 46 | | |
---|