tx · HukkxP9SGBGLdk7pYSCdWRwKzaeoJv4sAxpW3QzDXnTH

3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB:  -0.01400000 Waves

2021.06.03 05:29 [1553575] smart account 3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB > SELF 0.00000000 Waves

{ "type": 13, "id": "HukkxP9SGBGLdk7pYSCdWRwKzaeoJv4sAxpW3QzDXnTH", "fee": 1400000, "feeAssetId": null, "timestamp": 1622687405401, "version": 2, "chainId": 84, "sender": "3Mr97MBt1TwRZHBK8R1EFDz8S8mxui5U4zB", "senderPublicKey": "CQ7vntBAYh2QZcKcqiiyEnQWWXsr98ysDptD23Wgxmvb", "proofs": [ "2QRKjUyWJctCeF1CQgiRvhN7rrMJYNXEzxJUYmsyxMabx5WD6G9fw7gLsms1Ynh1yvXJZ46agrhvm5xMVbuFAhcm" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAgEAAAAQbGlzdFRvU3RyaW5nRnVuYwAAAAEAAAALSW50ZWdlckxpc3QKAQAAAAxsaXN0VG9TdHJpbmcAAAACAAAAA2FjYwAAAAFpCQAETQAAAAIFAAAAA2FjYwkAAaQAAAABCQABkQAAAAIFAAAAC0ludGVnZXJMaXN0BQAAAAFpBAAAAAskbGlzdDIzMjI3MAUAAAALSW50ZWdlckxpc3QEAAAACyRzaXplMjMyMjcwCQABkAAAAAEFAAAACyRsaXN0MjMyMjcwBAAAAAskYWNjMDIzMjI3MAUAAAADbmlsAwkAAAAAAAACBQAAAAskc2l6ZTIzMjI3MAAAAAAAAAAAAAUAAAALJGFjYzAyMzIyNzAEAAAACyRhY2MxMjMyMjcwCQEAAAAMbGlzdFRvU3RyaW5nAAAAAgUAAAALJGFjYzAyMzIyNzAJAAGRAAAAAgUAAAALJGxpc3QyMzIyNzAAAAAAAAAAAAADCQAAAAAAAAIFAAAACyRzaXplMjMyMjcwAAAAAAAAAAABBQAAAAskYWNjMTIzMjI3MAQAAAALJGFjYzIyMz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AAAAAAAAAAAAYFAAAABHVuaXQAAAAAAAAAAAAEAAAAB2Fzc2V0SWQJAAQ4AAAAAQUAAAAFYXNzZXQEAAAABGxpc3QJAQAAAA5maWx0ZXJTdGVwRnVuYwAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQFAAAAA25pbAMJAAAAAAAAAgUAAAAEbGlzdAUAAAAEbGlzdAMJAAAAAAAAAgUAAAAFY291bnQAAAAAAAAAAAEJAAACAAAAAQkAASwAAAACAgAAAAlsaXN0XzE9PT4JAAGkAAAAAQkAAZEAAAACBQAAAARsaXN0AAAAAAAAAAAACQAETAAAAAIFAAAABWFzc2V0BQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl8ix0h", "height": 1553575, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6gPQ9QHqFZtsojcrwfccHMAMahdVZm9mJ4Jvzp5UETvz Next: HdcAd1TUHb9rqRr3LCqWqprLidQRkzUKmus2ALQRaAJ1 Diff:
OldNewDifferences
44 func listToStringFunc (IntegerList) = {
55 func listToString (acc,i) = (acc :+ toString(IntegerList[i]))
66
7- let $list242280 = IntegerList
8- let $size242280 = size($list242280)
9- let $acc0242280 = nil
10- if (($size242280 == 0))
11- then $acc0242280
7+ let $list232270 = IntegerList
8+ let $size232270 = size($list232270)
9+ let $acc0232270 = nil
10+ if (($size232270 == 0))
11+ then $acc0232270
1212 else {
13- let $acc1242280 = listToString($acc0242280, $list242280[0])
14- if (($size242280 == 1))
15- then $acc1242280
13+ let $acc1232270 = listToString($acc0232270, $list232270[0])
14+ if (($size232270 == 1))
15+ then $acc1232270
1616 else {
17- let $acc2242280 = listToString($acc1242280, $list242280[1])
18- if (($size242280 == 2))
19- then $acc2242280
17+ let $acc2232270 = listToString($acc1232270, $list232270[1])
18+ if (($size232270 == 2))
19+ then $acc2232270
2020 else {
21- let $acc3242280 = listToString($acc2242280, $list242280[2])
22- if (($size242280 == 3))
23- then $acc3242280
21+ let $acc3232270 = listToString($acc2232270, $list232270[2])
22+ if (($size232270 == 3))
23+ then $acc3232270
2424 else {
25- let $acc4242280 = listToString($acc3242280, $list242280[3])
25+ let $acc4232270 = listToString($acc3232270, $list232270[3])
2626 throw("List size exceed 3")
27+ }
28+ }
29+ }
30+ }
31+ }
32+
33+
34+func filterStepFunc (IntegerList) = {
35+ func filterStep (accumulated,a) = if (((a % 2) == 0))
36+ then a :: accumulated
37+ else accumulated
38+
39+ let arr = IntegerList
40+ let $list452480 = arr
41+ let $size452480 = size($list452480)
42+ let $acc0452480 = nil
43+ if (($size452480 == 0))
44+ then $acc0452480
45+ else {
46+ let $acc1452480 = filterStep($acc0452480, $list452480[0])
47+ if (($size452480 == 1))
48+ then $acc1452480
49+ else {
50+ let $acc2452480 = filterStep($acc1452480, $list452480[1])
51+ if (($size452480 == 2))
52+ then $acc2452480
53+ else {
54+ let $acc3452480 = filterStep($acc2452480, $list452480[2])
55+ if (($size452480 == 3))
56+ then $acc3452480
57+ else {
58+ let $acc4452480 = filterStep($acc3452480, $list452480[3])
59+ if (($size452480 == 4))
60+ then $acc4452480
61+ else {
62+ let $acc5452480 = filterStep($acc4452480, $list452480[4])
63+ if (($size452480 == 5))
64+ then $acc5452480
65+ else {
66+ let $acc6452480 = filterStep($acc5452480, $list452480[5])
67+ throw("List size exceed 5")
68+ }
69+ }
2770 }
2871 }
2972 }
3679 let count = 1
3780 let asset = Issue("Asset", "", 1, 0, true, unit, 0)
3881 let assetId = calculateAssetId(asset)
39- let listToString = listToStringFunc([2, 3, 4])
40- if ((listToString == listToString))
82+ let list = filterStepFunc([2, 3, 4])
83+ if ((list == list))
4184 then if ((count == 1))
42- then throw(("list_1==>" + listToString[0]))
85+ then throw(("list_1==>" + toString(list[0])))
4386 else [asset]
4487 else throw("Strict value is not equal to itself.")
4588 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func listToStringFunc (IntegerList) = {
55 func listToString (acc,i) = (acc :+ toString(IntegerList[i]))
66
7- let $list242280 = IntegerList
8- let $size242280 = size($list242280)
9- let $acc0242280 = nil
10- if (($size242280 == 0))
11- then $acc0242280
7+ let $list232270 = IntegerList
8+ let $size232270 = size($list232270)
9+ let $acc0232270 = nil
10+ if (($size232270 == 0))
11+ then $acc0232270
1212 else {
13- let $acc1242280 = listToString($acc0242280, $list242280[0])
14- if (($size242280 == 1))
15- then $acc1242280
13+ let $acc1232270 = listToString($acc0232270, $list232270[0])
14+ if (($size232270 == 1))
15+ then $acc1232270
1616 else {
17- let $acc2242280 = listToString($acc1242280, $list242280[1])
18- if (($size242280 == 2))
19- then $acc2242280
17+ let $acc2232270 = listToString($acc1232270, $list232270[1])
18+ if (($size232270 == 2))
19+ then $acc2232270
2020 else {
21- let $acc3242280 = listToString($acc2242280, $list242280[2])
22- if (($size242280 == 3))
23- then $acc3242280
21+ let $acc3232270 = listToString($acc2232270, $list232270[2])
22+ if (($size232270 == 3))
23+ then $acc3232270
2424 else {
25- let $acc4242280 = listToString($acc3242280, $list242280[3])
25+ let $acc4232270 = listToString($acc3232270, $list232270[3])
2626 throw("List size exceed 3")
27+ }
28+ }
29+ }
30+ }
31+ }
32+
33+
34+func filterStepFunc (IntegerList) = {
35+ func filterStep (accumulated,a) = if (((a % 2) == 0))
36+ then a :: accumulated
37+ else accumulated
38+
39+ let arr = IntegerList
40+ let $list452480 = arr
41+ let $size452480 = size($list452480)
42+ let $acc0452480 = nil
43+ if (($size452480 == 0))
44+ then $acc0452480
45+ else {
46+ let $acc1452480 = filterStep($acc0452480, $list452480[0])
47+ if (($size452480 == 1))
48+ then $acc1452480
49+ else {
50+ let $acc2452480 = filterStep($acc1452480, $list452480[1])
51+ if (($size452480 == 2))
52+ then $acc2452480
53+ else {
54+ let $acc3452480 = filterStep($acc2452480, $list452480[2])
55+ if (($size452480 == 3))
56+ then $acc3452480
57+ else {
58+ let $acc4452480 = filterStep($acc3452480, $list452480[3])
59+ if (($size452480 == 4))
60+ then $acc4452480
61+ else {
62+ let $acc5452480 = filterStep($acc4452480, $list452480[4])
63+ if (($size452480 == 5))
64+ then $acc5452480
65+ else {
66+ let $acc6452480 = filterStep($acc5452480, $list452480[5])
67+ throw("List size exceed 5")
68+ }
69+ }
2770 }
2871 }
2972 }
3073 }
3174 }
3275
3376
3477 @Callable(i)
3578 func call () = {
3679 let count = 1
3780 let asset = Issue("Asset", "", 1, 0, true, unit, 0)
3881 let assetId = calculateAssetId(asset)
39- let listToString = listToStringFunc([2, 3, 4])
40- if ((listToString == listToString))
82+ let list = filterStepFunc([2, 3, 4])
83+ if ((list == list))
4184 then if ((count == 1))
42- then throw(("list_1==>" + listToString[0]))
85+ then throw(("list_1==>" + toString(list[0])))
4386 else [asset]
4487 else throw("Strict value is not equal to itself.")
4588 }
4689
4790
4891 @Verifier(tx)
4992 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5093

github/deemru/w8io/026f985 
53.85 ms