tx · BGUWBenj5yrTWRVMWBd7oFvzqw38pqWFTg8tMpKmf8bH
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.27 08:42 [2595949] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "BGUWBenj5yrTWRVMWBd7oFvzqw38pqWFTg8tMpKmf8bH",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685166205231,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"5HUfFMqqyAMCybie6hUxGsaBwabhKkm6k73sy6C7oAsdJD9JzSXMZiRDyRRBKNPcHbYVp3STbVgsLnxtG3LpLCfR"
],
"script": "base64:BgIHCAISAwoBAQABAWkBA2ZvbwEJaXRlcmF0aW9uBAxnZXRJdGVyYXRpb24JAJoIAgUEdGhpcwIJaXRlcmF0aW9uBAZnZXRJbnQJAGUCCgABQAUMZ2V0SXRlcmF0aW9uAwkAAQIFAUACA0ludAUBQAkAAgEJAKwCAgkAAwEFAUACGCBjb3VsZG4ndCBiZSBjYXN0IHRvIEludAABAwkAZgIFBmdldEludAAABANyZXMJAP0HBAUEdGhpcwIDZm9vCQDMCAIFCWl0ZXJhdGlvbgUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQICCWl0ZXJhdGlvbgUGZ2V0SW50BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiNUaGUgY3ljbGUgaGFzIHBhc3NlZCBhbGwgaXRlcmF0aW9ucwCSl4Le",
"height": 2595949,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: Dt6B38Wk9Suu8Jq6hQ3iCWdFHrmuoLKxyV5nsM44eHoV
Next: 8GLWaXxcjSneyoDcEFPaWn6PDRPR29BDXxNefyU736Sg
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func foo (iteration) = { |
---|
8 | | - | let getIteration = getInteger(this, "value") |
---|
| 8 | + | let getIteration = getInteger(this, "iteration") |
---|
9 | 9 | | let getInt = ({ |
---|
10 | 10 | | let @ = getIteration |
---|
11 | 11 | | if ($isInstanceOf(@, "Int")) |
---|
Full:
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 foo (iteration) = { |
---|
8 | | - | let getIteration = getInteger(this, "value") |
---|
| 8 | + | let getIteration = getInteger(this, "iteration") |
---|
9 | 9 | | let getInt = ({ |
---|
10 | 10 | | let @ = getIteration |
---|
11 | 11 | | if ($isInstanceOf(@, "Int")) |
---|
12 | 12 | | then @ |
---|
13 | 13 | | else throw(($getType(@) + " couldn't be cast to Int")) |
---|
14 | 14 | | } - 1) |
---|
15 | 15 | | if ((getInt > 0)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let res = reentrantInvoke(this, "foo", [iteration], nil) |
---|
18 | 18 | | if ((res == res)) |
---|
19 | 19 | | then [IntegerEntry("iteration", getInt)] |
---|
20 | 20 | | else throw("Strict value is not equal to itself.") |
---|
21 | 21 | | } |
---|
22 | 22 | | else throw("The cycle has passed all iterations") |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|