tx · 9AC3QE4mJ156Urue6oALVwSyNxjhXtzWTFVgnftDkzvA

3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx:  -0.01000000 Waves

2023.08.14 10:08 [2709906] smart account 3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx > SELF 0.00000000 Waves

{ "type": 13, "id": "9AC3QE4mJ156Urue6oALVwSyNxjhXtzWTFVgnftDkzvA", "fee": 1000000, "feeAssetId": null, "timestamp": 1691996969711, "version": 2, "chainId": 84, "sender": "3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx", "senderPublicKey": "81tRXAgqfPdSG8kxEMcAuyLeBBRRrzyqQLXCtCj1dpk2", "proofs": [ "Jkh7NzUDYJ9PvQPgjK65uEdRB1XxwX5eu8iJm1oyW3ZttECXgZ8KUoSVbY8Mm3cUsTWWBBvCctJdj3MR5SmoTFZ" ], "script": "base64:BgIICAISBAoCCAEBAQR0ZXN0AAQEbGlzdAkAzAgCCQCUCgICAWEAAAkAzAgCCQCUCgICAWIAAAkAzAgCCQCUCgICAWMAAAUDbmlsCgEDYmFyAgNhY2MEbmV4dAQJJHQwMTkxMjA4BQRuZXh0BAFhCAUJJHQwMTkxMjA4Al8xBAFiCAUJJHQwMTkxMjA4Al8yBAFjCQD8BwQFBHRoaXMCA2ZvbwkAzAgCBQFhCQDMCAIFAWIFA25pbAUDbmlsAwkAAAIFAWMFAWMAAAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgoAAiRsBQRsaXN0CgACJHMJAJADAQUCJGwKAAUkYWNjMAAACgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQNiYXICBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoBAWkBA2ZvbwIBYQFiCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQFhBQFiBQNuaWwAukePfQ==", "height": 2709906, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8bnURhz9qsg487annLBUug3xo5pkEHF5vXshqey9afDV Next: 9PSozigb6iG8TeV7sJkhiDtXiiqagBaRN5jn7CDmKGCX Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let keyBar = "bar_"
4+func test () = {
5+ let list = [$Tuple2("a", 0), $Tuple2("b", 0), $Tuple2("c", 0)]
6+ func bar (acc,next) = {
7+ let $t0191208 = next
8+ let a = $t0191208._1
9+ let b = $t0191208._2
10+ let c = invoke(this, "foo", [a, b], nil)
11+ if ((c == c))
12+ then 0
13+ else throw("Strict value is not equal to itself.")
14+ }
515
6-func barOrZero () = valueOrElse(getInteger(keyBar), 0)
16+ let $l = list
17+ let $s = size($l)
18+ let $acc0 = 0
19+ func $f0_1 ($a,$i) = if (($i >= $s))
20+ then $a
21+ else bar($a, $l[$i])
722
23+ func $f0_2 ($a,$i) = if (($i >= $s))
24+ then $a
25+ else throw("List size exceeds 10")
826
9-func funcBar () = [IntegerEntry(keyBar, (barOrZero() + 2))]
27+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
28+ }
1029
1130
1231 @Callable(i)
13-func callableFoo () = [IntegerEntry(keyBar, (barOrZero() + 3))]
14-
15-
16-
17-@Callable(i)
18-func foo () = {
19- let b = funcBar()
20- if ((b == b))
21- then {
22- let a = reentrantInvoke(this, "callableFoo", nil, nil)
23- if ((a == a))
24- then b
25- else throw("Strict value is not equal to itself.")
26- }
27- else throw("Strict value is not equal to itself.")
28- }
29-
30-
31-
32-@Callable(i)
33-func foo2 () = [IntegerEntry(keyBar, 1), IntegerEntry(keyBar, 2), IntegerEntry(keyBar, 3)]
32+func foo (a,b) = [IntegerEntry(a, b)]
3433
3534

github/deemru/w8io/169f3d6 
28.03 ms