tx · 22bDVWvVvcVydpa9eNG76nx2wUr48Cd3wxzp2VRJWrRN 3N1t3wgxXVrRNXf5WTVX9Um512i1x57md2u: -0.01000000 Waves 2023.05.04 06:39 [2562489] smart account 3N1t3wgxXVrRNXf5WTVX9Um512i1x57md2u > SELF 0.00000000 Waves
{ "type": 13, "id": "22bDVWvVvcVydpa9eNG76nx2wUr48Cd3wxzp2VRJWrRN", "fee": 1000000, "feeAssetId": null, "timestamp": 1683171595680, "version": 2, "chainId": 84, "sender": "3N1t3wgxXVrRNXf5WTVX9Um512i1x57md2u", "senderPublicKey": "GdNaa6g4No1LJpXPwXcaSYVRzM4AJcctvuf6yHk8LyFE", "proofs": [ "UV79aZYCBmr3EMkzReQkQbKXwwhAjyjHfjbg4wck4kDG6x9fGixYCekRKPAscDbK1hjoXbN1wrmmxGSqNritwY5" ], "script": "base64:AAIFAAAAAAAAAFMIAhIAIgFhIghmb2xkRnVuYyIDYWNjIgFlIgFpIgR0b3RvIgIkbCICJHMiBSRhY2MwIgUkZjBfMSICJGEiAiRpIgUkZjBfMiICdHgiBnZlcmlmeQAAAAIAAAAAAWEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAACCQAETAAAAAIAAAAAAAAAAAMJAARMAAAAAgAAAAAAAAAABAkABEwAAAACAAAAAAAAAAAFBQAAAANuaWwBAAAAAWIAAAACAAAAAWMAAAABZAkAAGQAAAACBQAAAAFjBQAAAAFkAAAAAQAAAAFlAQAAAARjYWxsAAAAAAQAAAABZgoAAAAAAWcFAAAAAWEKAAAAAAFoCQABkAAAAAEFAAAAAWcKAAAAAAFpAAAAAAAAAAAACgEAAAABagAAAAIAAAABawAAAAFsAwkAAGcAAAACBQAAAAFsBQAAAAFoBQAAAAFrCQEAAAABYgAAAAIFAAAAAWsJAAGRAAAAAgUAAAABZwUAAAABbAoBAAAAAW0AAAACAAAAAWsAAAABbAMJAABnAAAAAgUAAAABbAUAAAABaAUAAAABawkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA1CQEAAAABbQAAAAIJAQAAAAFqAAAAAgkBAAAAAWoAAAACCQEAAAABagAAAAIJAQAAAAFqAAAAAgkBAAAAAWoAAAACBQAAAAFpAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAACAAAAAAAAAAADAAAAAAAAAAAEAAAAAAAAAAAFAwYJAAACAAAAAQkAAaQAAAABBQAAAAFmBQAAAANuaWwAAAABAAAAAW4BAAAAAW8AAAAACQAB9AAAAAMIBQAAAAFuAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABbgAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFuAAAAD3NlbmRlclB1YmxpY0tlee2ikY4=", "height": 2562489, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = [1, 2, 3, 4, 5] | |
5 | + | ||
6 | + | func foldFunc (acc,e) = (acc + e) | |
7 | + | ||
8 | + | ||
9 | + | @Callable(i) | |
10 | + | func call () = { | |
11 | + | let toto = { | |
12 | + | let $l = a | |
13 | + | let $s = size($l) | |
14 | + | let $acc0 = 0 | |
15 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
16 | + | then $a | |
17 | + | else foldFunc($a, $l[$i]) | |
18 | + | ||
19 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
20 | + | then $a | |
21 | + | else throw("List size exceeds 5") | |
22 | + | ||
23 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
24 | + | } | |
25 | + | if (true) | |
26 | + | then throw(toString(toto)) | |
27 | + | else nil | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | @Verifier(tx) | |
32 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
33 | + |
github/deemru/w8io/169f3d6 18.19 ms ◑