tx · D3y2GGR67oNVCg2Se978p8pJYXBjBfAPdry3zCr3266V

3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx:  -0.01000000 Waves

2023.03.27 12:08 [2508183] smart account 3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx > SELF 0.00000000 Waves

{ "type": 13, "id": "D3y2GGR67oNVCg2Se978p8pJYXBjBfAPdry3zCr3266V", "fee": 1000000, "feeAssetId": null, "timestamp": 1679908198767, "version": 2, "chainId": 84, "sender": "3N5BTH4bjnXn7AAKoj4sswxytsPGmdXUuTx", "senderPublicKey": "DyeDJ3fgwVVux2WRkxpLU9BbVjTM96AyV58b7bRFzCBx", "proofs": [ "46jAC8dcPDH6SFwcooFJJ4LemJGJ5kKV1LvPwm87wdfxiaizZmzbXV1NGaoNQFnXadp8PkDYm9zo8QkGwv7hgU3u" ], "script": "base64:BgIHCAISAwoBGAABAWkBBmJ1eU5mdAEEbmZ0cwQFYnV5ZXIIBQFpBmNhbGxlcgQBYQkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFBQNuaWwKAQhmb2xkRnVuYwIDYWNjAWUJAGQCBQNhY2MFAWUEBWZpbmFsCgACJGwFAWEKAAIkcwkAkAMBBQIkbAoABSRhY2MwAAAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBCGZvbGRGdW5jAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA1CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQkAzAgCCQELU3RyaW5nRW50cnkCAgVmaW5hbAkApAMBBQVmaW5hbAUDbmlsADy4YDU=", "height": 2508183, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4vsN49eCWi5K38rQpPTiLWDWjnKrT3EbxPs8zbQjL7dL Next: 8pjN9uwrC3FatStX2FdQFWQQAfK1jXDaFgz5oZjBE95m Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = ["apple", "mabdfd"]
5-
6-func foldFunc (acc,e) = e
74
85
9-let final = {
10- let $l = a
11- let $s = size($l)
12- let $acc0 = 0
13- func $f0_1 ($a,$i) = if (($i >= $s))
14- then $a
15- else foldFunc($a, $l[$i])
6+@Callable(i)
7+func buyNft (nfts) = {
8+ let buyer = i.caller
9+ let a = [1, 2, 3, 4, 5]
10+ func foldFunc (acc,e) = (acc + e)
1611
17- func $f0_2 ($a,$i) = if (($i >= $s))
18- then $a
19- else throw("List size exceeds 5")
12+ let final = {
13+ let $l = a
14+ let $s = size($l)
15+ let $acc0 = 0
16+ func $f0_1 ($a,$i) = if (($i >= $s))
17+ then $a
18+ else foldFunc($a, $l[$i])
2019
21- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
20+ func $f0_2 ($a,$i) = if (($i >= $s))
21+ then $a
22+ else throw("List size exceeds 5")
23+
24+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
25+ }
26+[StringEntry("final", toString(final))]
2227 }
2328
2429

github/deemru/w8io/169f3d6 
23.23 ms