tx · 8PsbrCs5YnSCHPVEwFZPJeCzHHWrPf8JekWvFkRbw953 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves 2023.03.23 15:52 [2502672] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{ "type": 13, "id": "8PsbrCs5YnSCHPVEwFZPJeCzHHWrPf8JekWvFkRbw953", "fee": 1000000, "feeAssetId": null, "timestamp": 1679576014345, "version": 2, "chainId": 84, "sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M", "senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9", "proofs": [ "3cYh1qYC7dHtXyP9eLUioxHqPkWVz1KH5gtvpW5kWrPg4gA2S91pWaZ4mVpM2n2K5CPN13rsZMmLWHBrjLwxCBRB" ], "script": "base64:BgIRCAISBAoCAQESABIFCgMBAREAAwFpAQx0ZXN0SW50ZXJuYWwCDW1heEl0ZXJhdGlvbnMQY3VycmVudEl0ZXJhdGlvbgoBBXRlc3QzAQV2YWx1ZQADCgEDc3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQEA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsBAdyZXN1bHQxCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEDc3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA1CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQkAzAgCCQEMSW50ZWdlckVudHJ5AgIISW50ZXJnYWwFB3Jlc3VsdDEFA25pbAFpAQtleGFtcGxlQ2FsbAAEA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R4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5mlgMWg==", "height": 2502672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fpnmd341NSqrvJvEACDXgmHRxPnyYbGKF1gwX8kUSU8W Next: GvrtjXhiQYAFFMt6yFBYRYfg3GnkJSqSUME8xTdR52nB Diff:
Old | New | Differences | |
---|---|---|---|
20 | 20 | ||
21 | 21 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | 22 | then $a | |
23 | - | else throw("List size exceeds | |
23 | + | else throw("List size exceeds 5") | |
24 | 24 | ||
25 | - | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
25 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
26 | 26 | } | |
27 | 27 | [IntegerEntry("Intergal", result1)] | |
28 | 28 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func testInternal (maxIterations,currentIteration) = { | |
8 | 8 | func test3 (value) = 3 | |
9 | 9 | ||
10 | 10 | func sum (accum,next) = (accum + next) | |
11 | 11 | ||
12 | 12 | let arr = [1, 2, 3] | |
13 | 13 | let result1 = { | |
14 | 14 | let $l = arr | |
15 | 15 | let $s = size($l) | |
16 | 16 | let $acc0 = 0 | |
17 | 17 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
18 | 18 | then $a | |
19 | 19 | else sum($a, $l[$i]) | |
20 | 20 | ||
21 | 21 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
22 | 22 | then $a | |
23 | - | else throw("List size exceeds | |
23 | + | else throw("List size exceeds 5") | |
24 | 24 | ||
25 | - | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
25 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
26 | 26 | } | |
27 | 27 | [IntegerEntry("Intergal", result1)] | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func exampleCall () = { | |
34 | 34 | let z = invoke(this, "internalRecursion", [101, 0, nil], nil) | |
35 | 35 | if ((z == z)) | |
36 | 36 | then match z { | |
37 | 37 | case list: Int => | |
38 | 38 | [IntegerEntry(("EXECUTED__" + toString(list)), list)] | |
39 | 39 | case _ => | |
40 | 40 | throw("Wrong internal function result") | |
41 | 41 | } | |
42 | 42 | else throw("Strict value is not equal to itself.") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(i) | |
48 | 48 | func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this)) | |
49 | 49 | then throw("Only can be called by this contract") | |
50 | 50 | else if ((maxIterations > currentIteration)) | |
51 | 51 | then { | |
52 | 52 | let z = invoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) | |
53 | 53 | if ((z == z)) | |
54 | 54 | then $Tuple2([IntegerEntry(("current_iteration__" + toString(currentIteration)), currentIteration)], currentIteration) | |
55 | 55 | else throw("Strict value is not equal to itself.") | |
56 | 56 | } | |
57 | 57 | else $Tuple2(nil, 40) | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Verifier(tx) | |
61 | 61 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
62 | 62 |
github/deemru/w8io/026f985 33.97 ms ◑