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:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-
4+let iteration = valueOrErrorMessage(getInteger(this, "usersCounter"), "Range store read error")
55
66 @Callable(i)
7-func foo (iteration) = {
8- let getIteration = getInteger(this, "iteration")
9- let getInt = ({
10- let @ = getIteration
11- if ($isInstanceOf(@, "Int"))
12- then @
13- else throw(($getType(@) + " couldn't be cast to Int"))
14- } - 1)
15- if ((getInt > 0))
16- then {
17- let res = reentrantInvoke(this, "foo", [iteration], nil)
18- if ((res == res))
19- then [IntegerEntry("iteration", getInt)]
20- else throw("Strict value is not equal to itself.")
21- }
22- else throw("The cycle has passed all iterations")
23- }
7+func foo (iteration,key) = if ((iteration >= 0))
8+ then {
9+ let res = reentrantInvoke(this, "foo", [(iteration - 1), key], nil)
10+ if ((res == res))
11+ then [IntegerEntry(key, iteration)]
12+ else throw("Strict value is not equal to itself.")
13+ }
14+ else throw("Storage is incremented")
2415
2516

github/deemru/w8io/026f985 
33.82 ms