tx · Dt6B38Wk9Suu8Jq6hQ3iCWdFHrmuoLKxyV5nsM44eHoV
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.27 08:41 [2595947] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "Dt6B38Wk9Suu8Jq6hQ3iCWdFHrmuoLKxyV5nsM44eHoV",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685166094478,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"yFoQhPc9vExzSic9jCvghSHgroutkzTKJTZ24pRKVHZQKAm6x5pRRB6Zj123rFf4gF5E8LoTj8MYB7DLRpHxWoB"
],
"script": "base64:BgIHCAISAwoBAQABAWkBA2ZvbwEJaXRlcmF0aW9uBAxnZXRJdGVyYXRpb24JAJoIAgUEdGhpcwIFdmFsdWUEBmdldEludAkAZQIKAAFABQxnZXRJdGVyYXRpb24DCQABAgUBQAIDSW50BQFACQACAQkArAICCQADAQUBQAIYIGNvdWxkbid0IGJlIGNhc3QgdG8gSW50AAEDCQBmAgUGZ2V0SW50AAAEA3JlcwkA/QcEBQR0aGlzAgNmb28JAMwIAgUJaXRlcmF0aW9uBQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgIJaXRlcmF0aW9uBQZnZXRJbnQFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECI1RoZSBjeWNsZSBoYXMgcGFzc2VkIGFsbCBpdGVyYXRpb25zAJvWwjY=",
"height": 2595947,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9Qyn377JqXd3dJgo4uZStAxZt75v5oVNZ4og8o2L3JA1
Next: BGUWBenj5yrTWRVMWBd7oFvzqw38pqWFTg8tMpKmf8bH
Diff:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
|
10 | 10 | | let e = c |
---|
11 | 11 | | if ($isInstanceOf(e, "Int")) |
---|
12 | 12 | | then e |
---|
13 | | - | else throw("Couldn't cast Int|Unit to Int") |
---|
| 13 | + | else throw(($getType(e) + " couldn't be cast to Int")) |
---|
14 | 14 | | } - 1) |
---|
15 | 15 | | if ((d > 0)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let f = reentrantInvoke(this, "foo", [b], nil) |
---|
18 | | - | [IntegerEntry("iteration", d)] |
---|
| 18 | + | if ((f == f)) |
---|
| 19 | + | then [IntegerEntry("iteration", d)] |
---|
| 20 | + | else throw("Strict value is not equal to itself.") |
---|
19 | 21 | | } |
---|
20 | 22 | | else throw("The cycle has passed all iterations") |
---|
21 | 23 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func foo (b) = { |
---|
8 | 8 | | let c = getInteger(this, "value") |
---|
9 | 9 | | let d = ({ |
---|
10 | 10 | | let e = c |
---|
11 | 11 | | if ($isInstanceOf(e, "Int")) |
---|
12 | 12 | | then e |
---|
13 | | - | else throw("Couldn't cast Int|Unit to Int") |
---|
| 13 | + | else throw(($getType(e) + " couldn't be cast to Int")) |
---|
14 | 14 | | } - 1) |
---|
15 | 15 | | if ((d > 0)) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let f = reentrantInvoke(this, "foo", [b], nil) |
---|
18 | | - | [IntegerEntry("iteration", d)] |
---|
| 18 | + | if ((f == f)) |
---|
| 19 | + | then [IntegerEntry("iteration", d)] |
---|
| 20 | + | else throw("Strict value is not equal to itself.") |
---|
19 | 21 | | } |
---|
20 | 22 | | else throw("The cycle has passed all iterations") |
---|
21 | 23 | | } |
---|
22 | 24 | | |
---|
23 | 25 | | |
---|