tx · 8ka5f98iQepkNzb8iP1iLWbSvg2mnLWBtNL4ybdEMBxX

3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx:  -0.01000000 Waves

2023.05.27 08:27 [2595931] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves

{ "type": 13, "id": "8ka5f98iQepkNzb8iP1iLWbSvg2mnLWBtNL4ybdEMBxX", "fee": 1000000, "feeAssetId": null, "timestamp": 1685165241569, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "5h9THQVRhX4Xy8p2wq1VAuwhEMfdBYFxNiEKpC91KN3TdHU9578XghMpMAWYSvd5QLpCK7JiLYyQRnBN9TPRyjCh" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAADZm9vAAAAAQAAAAlpdGVyYXRpb24EAAAAA3JlcwkAA/0AAAAEBQAAAAR0aGlzAgAAAANmb28JAARMAAAAAgUAAAAJaXRlcmF0aW9uBQAAAANuaWwFAAAAA25pbAMJAAAAAAAAAgUAAAADcmVzBQAAAANyZXMEAAAADGdldEl0ZXJhdGlvbgkABBoAAAACBQAAAAR0aGlzAgAAAAV2YWx1ZQQAAAAGZ2V0SW50CQAAZQAAAAIKAAAAAAFABQAAAAxnZXRJdGVyYXRpb24DCQAAAQAAAAIFAAAAAUACAAAAA0ludAUAAAABQAkAAAIAAAABAgAAAB1Db3VsZG4ndCBjYXN0IEludHxVbml0IHRvIEludAAAAAAAAAAAAQMJAABmAAAAAgUAAAAGZ2V0SW50AAAAAAAAAAAACQAFFAAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACWl0ZXJhdGlvbgUAAAAGZ2V0SW50BQAAAANuaWwFAAAAA3JlcwkAAAIAAAABAgAAACNUaGUgY3ljbGUgaGFzIHBhc3NlZCBhbGwgaXRlcmF0aW9ucwkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAAA5+kUqA==", "height": 2595931, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GJViR2uf8DZcamCiUxxLGToUEEhss3YydRPDNfquyqzi Next: Dii1Ccthyxaq6xYPuVjMWHzeNoEDtKfvYEr1EPNsyxb Diff:
OldNewDifferences
77 func foo (iteration) = {
88 let res = reentrantInvoke(this, "foo", [iteration], nil)
99 if ((res == res))
10- then $Tuple2(nil, res)
10+ then {
11+ let getIteration = getInteger(this, "value")
12+ let getInt = ({
13+ let @ = getIteration
14+ if ($isInstanceOf(@, "Int"))
15+ then @
16+ else throw("Couldn't cast Int|Unit to Int")
17+ } - 1)
18+ if ((getInt > 0))
19+ then $Tuple2([IntegerEntry("iteration", getInt)], res)
20+ else throw("The cycle has passed all iterations")
21+ }
1122 else throw("Strict value is not equal to itself.")
1223 }
1324
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func foo (iteration) = {
88 let res = reentrantInvoke(this, "foo", [iteration], nil)
99 if ((res == res))
10- then $Tuple2(nil, res)
10+ then {
11+ let getIteration = getInteger(this, "value")
12+ let getInt = ({
13+ let @ = getIteration
14+ if ($isInstanceOf(@, "Int"))
15+ then @
16+ else throw("Couldn't cast Int|Unit to Int")
17+ } - 1)
18+ if ((getInt > 0))
19+ then $Tuple2([IntegerEntry("iteration", getInt)], res)
20+ else throw("The cycle has passed all iterations")
21+ }
1122 else throw("Strict value is not equal to itself.")
1223 }
1324
1425

github/deemru/w8io/169f3d6 
24.74 ms