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:
Old | New | | Differences |
---|
7 | 7 | | func foo (iteration) = { |
---|
8 | 8 | | let res = reentrantInvoke(this, "foo", [iteration], nil) |
---|
9 | 9 | | 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 | + | } |
---|
11 | 22 | | else throw("Strict value is not equal to itself.") |
---|
12 | 23 | | } |
---|
13 | 24 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func foo (iteration) = { |
---|
8 | 8 | | let res = reentrantInvoke(this, "foo", [iteration], nil) |
---|
9 | 9 | | 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 | + | } |
---|
11 | 22 | | else throw("Strict value is not equal to itself.") |
---|
12 | 23 | | } |
---|
13 | 24 | | |
---|
14 | 25 | | |
---|