tx · 6ovZRJs1LGeeVfzAqAZ5nW7dp1QbqpNWWcWpEFjVaA3c
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.26 13:15 [2594809] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "6ovZRJs1LGeeVfzAqAZ5nW7dp1QbqpNWWcWpEFjVaA3c",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685096136438,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"5b3XuF3rHHu51UfdMQoYCc1xqopJTEdJH9z62qnvipTfSS2WXR89BtWTdqPxnnBn2fnBUA3T1ACgyR93un2Hr4YN"
],
"script": "base64:BgIHCAISAwoBAQABAWkBA2ZvbwEJaXRlcmF0aW9uBANyZXMJAP0HBAUEdGhpcwIDZm9vCQDMCAIFCWl0ZXJhdGlvbgUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMDCQBmAgUJaXRlcmF0aW9uAAAEBmdldEtleQkAmggCBQR0aGlzAgRjYWxsBAZnZXRJbnQJAGUCCgABQAUGZ2V0S2V5AwkAAQIFAUACA0ludAUBQAkAAgEJAKwCAgkAAwEFAUACGCBjb3VsZG4ndCBiZSBjYXN0IHRvIEludAABCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQICBGNhbGwFCWl0ZXJhdGlvbgUDbmlsBQNyZXMJAMwIAgkBDEludGVnZXJFbnRyeQICBGNhbGwFCWl0ZXJhdGlvbgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAEJHeWY=",
"height": 2594809,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CyuV3oJA7gEQj9bthZNTAgyJP84sf1p2x3bUcCQwfqhb
Next: CmroPF3Cz5Zn3GpTuNjfjS4ysbQ8AqN9AfBjNf36Joat
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func foo (a,iteration) = { |
---|
8 | | - | let res = reentrantInvoke(this, "foo", [a, iteration], nil) |
---|
| 7 | + | func foo (iteration) = { |
---|
| 8 | + | let res = reentrantInvoke(this, "foo", [iteration], nil) |
---|
9 | 9 | | if ((res == res)) |
---|
10 | | - | then if ((a > iteration)) |
---|
11 | | - | then $Tuple2(nil, res) |
---|
12 | | - | else [IntegerEntry("call", a)] |
---|
| 10 | + | then if ((iteration > 0)) |
---|
| 11 | + | then { |
---|
| 12 | + | let getKey = getInteger(this, "call") |
---|
| 13 | + | let getInt = ({ |
---|
| 14 | + | let @ = getKey |
---|
| 15 | + | if ($isInstanceOf(@, "Int")) |
---|
| 16 | + | then @ |
---|
| 17 | + | else throw(($getType(@) + " couldn't be cast to Int")) |
---|
| 18 | + | } - 1) |
---|
| 19 | + | $Tuple2([IntegerEntry("call", iteration)], res) |
---|
| 20 | + | } |
---|
| 21 | + | else [IntegerEntry("call", iteration)] |
---|
13 | 22 | | else throw("Strict value is not equal to itself.") |
---|
14 | 23 | | } |
---|
15 | 24 | | |
---|
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 | | - | func foo (a,iteration) = { |
---|
8 | | - | let res = reentrantInvoke(this, "foo", [a, iteration], nil) |
---|
| 7 | + | func foo (iteration) = { |
---|
| 8 | + | let res = reentrantInvoke(this, "foo", [iteration], nil) |
---|
9 | 9 | | if ((res == res)) |
---|
10 | | - | then if ((a > iteration)) |
---|
11 | | - | then $Tuple2(nil, res) |
---|
12 | | - | else [IntegerEntry("call", a)] |
---|
| 10 | + | then if ((iteration > 0)) |
---|
| 11 | + | then { |
---|
| 12 | + | let getKey = getInteger(this, "call") |
---|
| 13 | + | let getInt = ({ |
---|
| 14 | + | let @ = getKey |
---|
| 15 | + | if ($isInstanceOf(@, "Int")) |
---|
| 16 | + | then @ |
---|
| 17 | + | else throw(($getType(@) + " couldn't be cast to Int")) |
---|
| 18 | + | } - 1) |
---|
| 19 | + | $Tuple2([IntegerEntry("call", iteration)], res) |
---|
| 20 | + | } |
---|
| 21 | + | else [IntegerEntry("call", iteration)] |
---|
13 | 22 | | else throw("Strict value is not equal to itself.") |
---|
14 | 23 | | } |
---|
15 | 24 | | |
---|
16 | 25 | | |
---|