tx · 9CdqDGcTAPduYCThnMyiksX5at5M3Ren1XsnVcRwbgpk
3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx: -0.01000000 Waves
2023.05.27 17:29 [2596485] smart account 3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx > SELF 0.00000000 Waves
{
"type": 13,
"id": "9CdqDGcTAPduYCThnMyiksX5at5M3Ren1XsnVcRwbgpk",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685197774529,
"version": 2,
"chainId": 84,
"sender": "3N7eEzkCtBoWaNRe4ZuTPrChbnjBLKDb9Bx",
"senderPublicKey": "2NK7BrUZMvnHzAoHnJfz3FuDBP5zYUNoxshB49AH2kbc",
"proofs": [
"5TuwNuNR9ceN2cYbrMNvRr2vZavudjitQWPaeRQjjqyBUdvwJpQyKpL6N92DSHhGz5u1QYLwxYBdBSi9jhQCoNg2"
],
"script": "base64:BgIICAISBAoCAQgDABFrSW5jcmVtZW50Q291bnRlcgIQaW5jcmVtZW50Q291bnRlcgAXY3VycmVudEluY3JlbWVudENvdW50ZXIJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAmggCBQR0aGlzBRFrSW5jcmVtZW50Q291bnRlcgIaSW5jcmVtZW50IHN0b3JlIHJlYWQgZXJyb3IACWl0ZXJhdGlvbgkBE3ZhbHVlT3JFcnJvck1lc3NhZ2UCCQCaCAIFBHRoaXMCDHVzZXJzQ291bnRlcgIWUmFuZ2Ugc3RvcmUgcmVhZCBlcnJvcgEBaQEDZm9vAglpdGVyYXRpb24Da2V5AwkAZwIFCWl0ZXJhdGlvbgAABANyZXMJAP0HBAUEdGhpcwIDZm9vCQDMCAIJAGUCBQlpdGVyYXRpb24AAQkAzAgCBQNrZXkFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQNrZXkFCWl0ZXJhdGlvbgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIWU3RvcmFnZSBpcyBpbmNyZW1lbnRlZADSZMmD",
"height": 2596485,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8GLWaXxcjSneyoDcEFPaWn6PDRPR29BDXxNefyU736Sg
Next: 4mH1xG1UvQ671zSGSxcH9XaWUZFDVRWBt2BWAY1bvzK8
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let kIncrementCounter = "incrementCounter" |
---|
| 5 | + | |
---|
| 6 | + | let currentIncrementCounter = valueOrErrorMessage(getInteger(this, kIncrementCounter), "Increment store read error") |
---|
| 7 | + | |
---|
4 | 8 | | let iteration = valueOrErrorMessage(getInteger(this, "usersCounter"), "Range store read error") |
---|
5 | 9 | | |
---|
6 | 10 | | @Callable(i) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let kIncrementCounter = "incrementCounter" |
---|
| 5 | + | |
---|
| 6 | + | let currentIncrementCounter = valueOrErrorMessage(getInteger(this, kIncrementCounter), "Increment store read error") |
---|
| 7 | + | |
---|
4 | 8 | | let iteration = valueOrErrorMessage(getInteger(this, "usersCounter"), "Range store read error") |
---|
5 | 9 | | |
---|
6 | 10 | | @Callable(i) |
---|
7 | 11 | | func foo (iteration,key) = if ((iteration >= 0)) |
---|
8 | 12 | | then { |
---|
9 | 13 | | let res = reentrantInvoke(this, "foo", [(iteration - 1), key], nil) |
---|
10 | 14 | | if ((res == res)) |
---|
11 | 15 | | then [IntegerEntry(key, iteration)] |
---|
12 | 16 | | else throw("Strict value is not equal to itself.") |
---|
13 | 17 | | } |
---|
14 | 18 | | else throw("Storage is incremented") |
---|
15 | 19 | | |
---|
16 | 20 | | |
---|