tx · 9D4uCqwWXvGkTpJ5xosdryESZe7VKdiurxsC1BpdwV57
3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8: -0.01000000 Waves
2023.10.21 12:09 [2808153] smart account 3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9D4uCqwWXvGkTpJ5xosdryESZe7VKdiurxsC1BpdwV57",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1697879395215,
"version": 2,
"chainId": 84,
"sender": "3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8",
"senderPublicKey": "8EXR9gFY3exPzo6wV3v2oa96CYznA1QszMLFXiwWuptJ",
"proofs": [
"5zHAm7dNb1XsHBokGwEddroEa7rSp1wUWSByGz4EFqqBU6wtHEwZUBerXNzK5MoBX1YVHRUPA3n6prHe7Xnb2Ry9"
],
"script": "base64:BgIECAISAAIAAWEJAMwIAgABCQDMCAIAAgkAzAgCAAMJAMwIAgAECQDMCAIABQUDbmlsAQhmb2xkRnVuYwIDYWNjAWUJAMwIAgkAZAIFAWUAAQUDYWNjAQFpAQF4AAQBYgoAAiRsBQFhCgACJHMJAJADAQUCJGwKAAUkYWNjMAUDbmlsCgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQhmb2xkRnVuYwIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQITTGlzdCBzaXplIGV4Y2VlZHMgNQkBBSRmMF8yAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgUFJGFjYzAAAAABAAIAAwAEAAUFA25pbAANK3o8",
"height": 2808153,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6ueyqcuKjcf7aUtoKWcthwB3wX84EuhH8exdTdiLGW6X
Next: AzXmMMBZEyL7qwFa4j5o5z8V3xQ1KTqgE23JaZtcSpE
Diff:
Old | New | | Differences |
---|
6 | 6 | | func foldFunc (acc,e) = (e + 1) :: acc |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
| 9 | + | @Callable(i) |
---|
9 | 10 | | func x () = { |
---|
10 | | - | let $l = a |
---|
11 | | - | let $s = size($l) |
---|
12 | | - | let $acc0 = nil |
---|
13 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
14 | | - | then $a |
---|
15 | | - | else foldFunc($a, $l[$i]) |
---|
| 11 | + | let b = { |
---|
| 12 | + | let $l = a |
---|
| 13 | + | let $s = size($l) |
---|
| 14 | + | let $acc0 = nil |
---|
| 15 | + | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
| 16 | + | then $a |
---|
| 17 | + | else foldFunc($a, $l[$i]) |
---|
16 | 18 | | |
---|
17 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
18 | | - | then $a |
---|
19 | | - | else throw("List size exceeds 5") |
---|
| 19 | + | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
| 20 | + | then $a |
---|
| 21 | + | else throw("List size exceeds 5") |
---|
20 | 22 | | |
---|
21 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
| 23 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
| 24 | + | } |
---|
| 25 | + | nil |
---|
22 | 26 | | } |
---|
23 | | - | |
---|
24 | 27 | | |
---|
25 | 28 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = [1, 2, 3, 4, 5] |
---|
5 | 5 | | |
---|
6 | 6 | | func foldFunc (acc,e) = (e + 1) :: acc |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
| 9 | + | @Callable(i) |
---|
9 | 10 | | func x () = { |
---|
10 | | - | let $l = a |
---|
11 | | - | let $s = size($l) |
---|
12 | | - | let $acc0 = nil |
---|
13 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
14 | | - | then $a |
---|
15 | | - | else foldFunc($a, $l[$i]) |
---|
| 11 | + | let b = { |
---|
| 12 | + | let $l = a |
---|
| 13 | + | let $s = size($l) |
---|
| 14 | + | let $acc0 = nil |
---|
| 15 | + | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
| 16 | + | then $a |
---|
| 17 | + | else foldFunc($a, $l[$i]) |
---|
16 | 18 | | |
---|
17 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
18 | | - | then $a |
---|
19 | | - | else throw("List size exceeds 5") |
---|
| 19 | + | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
| 20 | + | then $a |
---|
| 21 | + | else throw("List size exceeds 5") |
---|
20 | 22 | | |
---|
21 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
| 23 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
| 24 | + | } |
---|
| 25 | + | nil |
---|
22 | 26 | | } |
---|
23 | | - | |
---|
24 | 27 | | |
---|
25 | 28 | | |
---|