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:BgIRCAISBAoCAQESABIFCgMBAREAAwFpAQx0ZXN0SW50ZXJuYWwCDW1heEl0ZXJhdGlvbnMQY3VycmVudEl0ZXJhdGlvbgoBBXRlc3QzAQV2YWx1ZQADCgEDc3VtAgVhY2N1bQRuZXh0CQBkAgUFYWNjdW0FBG5leHQEA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwUDbmlsBAdyZXN1bHQxCgACJGwFA2FycgoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEDc3VtAgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA1CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQkAzAgCCQEMSW50ZWdlckVudHJ5AgIISW50ZXJnYWwFB3Jlc3VsdDEFA25pbAFpAQtleGFtcGxlQ2FsbAAE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nR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5mlgMWg==", "height": 2502672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fpnmd341NSqrvJvEACDXgmHRxPnyYbGKF1gwX8kUSU8W Next: GvrtjXhiQYAFFMt6yFBYRYfg3GnkJSqSUME8xTdR52nB Diff:
OldNewDifferences
2020
2121 func $f0_2 ($a,$i) = if (($i >= $s))
2222 then $a
23- else throw("List size exceeds 3")
23+ else throw("List size exceeds 5")
2424
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)
2626 }
2727 [IntegerEntry("Intergal", result1)]
2828 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func testInternal (maxIterations,currentIteration) = {
88 func test3 (value) = 3
99
1010 func sum (accum,next) = (accum + next)
1111
1212 let arr = [1, 2, 3]
1313 let result1 = {
1414 let $l = arr
1515 let $s = size($l)
1616 let $acc0 = 0
1717 func $f0_1 ($a,$i) = if (($i >= $s))
1818 then $a
1919 else sum($a, $l[$i])
2020
2121 func $f0_2 ($a,$i) = if (($i >= $s))
2222 then $a
23- else throw("List size exceeds 3")
23+ else throw("List size exceeds 5")
2424
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)
2626 }
2727 [IntegerEntry("Intergal", result1)]
2828 }
2929
3030
3131
3232 @Callable(i)
3333 func exampleCall () = {
3434 let z = invoke(this, "internalRecursion", [101, 0, nil], nil)
3535 if ((z == z))
3636 then match z {
3737 case list: Int =>
3838 [IntegerEntry(("EXECUTED__" + toString(list)), list)]
3939 case _ =>
4040 throw("Wrong internal function result")
4141 }
4242 else throw("Strict value is not equal to itself.")
4343 }
4444
4545
4646
4747 @Callable(i)
4848 func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this))
4949 then throw("Only can be called by this contract")
5050 else if ((maxIterations > currentIteration))
5151 then {
5252 let z = invoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil)
5353 if ((z == z))
5454 then $Tuple2([IntegerEntry(("current_iteration__" + toString(currentIteration)), currentIteration)], currentIteration)
5555 else throw("Strict value is not equal to itself.")
5656 }
5757 else $Tuple2(nil, 40)
5858
5959
6060 @Verifier(tx)
6161 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
6262

github/deemru/w8io/169f3d6 
28.14 ms