tx · 8GLWaXxcjSneyoDcEFPaWn6PDRPR29BDXxNefyU736Sg 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves 2023.05.27 17:17 [2596473] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{ "type": 13, "id": "8GLWaXxcjSneyoDcEFPaWn6PDRPR29BDXxNefyU736Sg", "fee": 1000000, "feeAssetId": null, "timestamp": 1685197118398, "version": 2, "chainId": 84, "sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx", "senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc", "proofs": [ "2fhBkJFvbXaMM87X67Z2KLiicj7zUysSdqCqX7pTd8JdcniTNcF9nKFcWrMyR3gz81n1PuJEaT73WygMU19P32ax" ], "script": "base64:BgIICAISBAoCAQgBAAlpdGVyYXRpb24JARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAmggCBQR0aGlzAgx1c2Vyc0NvdW50ZXICFlJhbmdlIHN0b3JlIHJlYWQgZXJyb3IBAWkBA2ZvbwIJaXRlcmF0aW9uA2tleQMJAGcCBQlpdGVyYXRpb24AAAQDcmVzCQD9BwQFBHRoaXMCA2ZvbwkAzAgCCQBlAgUJaXRlcmF0aW9uAAEJAMwIAgUDa2V5BQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgUDa2V5BQlpdGVyYXRpb24FA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECFlN0b3JhZ2UgaXMgaW5jcmVtZW50ZWQAnAQUug==", "height": 2596473, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BGUWBenj5yrTWRVMWBd7oFvzqw38pqWFTg8tMpKmf8bH Next: 9CdqDGcTAPduYCThnMyiksX5at5M3Ren1XsnVcRwbgpk Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = valueOrErrorMessage(getInteger(this, "usersCounter"), "Range store read error") | |
4 | 5 | ||
5 | - | ||
6 | - | @Callable(a) | |
7 | - | func foo (b) = { | |
8 | - | let c = getInteger(this, "iteration") | |
9 | - | let d = ({ | |
10 | - | let e = c | |
11 | - | if ($isInstanceOf(e, "Int")) | |
12 | - | then e | |
13 | - | else throw(($getType(e) + " couldn't be cast to Int")) | |
14 | - | } - 1) | |
15 | - | if ((d > 0)) | |
16 | - | then { | |
17 | - | let f = reentrantInvoke(this, "foo", [b], nil) | |
18 | - | if ((f == f)) | |
19 | - | then [IntegerEntry("iteration", d)] | |
20 | - | else throw("Strict value is not equal to itself.") | |
21 | - | } | |
22 | - | else throw("The cycle has passed all iterations") | |
23 | - | } | |
6 | + | @Callable(b) | |
7 | + | func foo (a,c) = if ((a >= 0)) | |
8 | + | then { | |
9 | + | let d = reentrantInvoke(this, "foo", [(a - 1), c], nil) | |
10 | + | if ((d == d)) | |
11 | + | then [IntegerEntry(c, a)] | |
12 | + | else throw("Strict value is not equal to itself.") | |
13 | + | } | |
14 | + | else throw("Storage is incremented") | |
24 | 15 | ||
25 | 16 |
github/deemru/w8io/026f985 23.00 ms ◑