tx · 3BdbXYJtZ2AB8CTjCsDY2eRrUNQEgGTJK26Ks2SdSSa8
3MwvooYHA22kyPsQkRNQ8zkqaVQaSvwAuz2: -0.00100000 Waves
2022.07.06 16:21 [2127872] smart account 3MwvooYHA22kyPsQkRNQ8zkqaVQaSvwAuz2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "3BdbXYJtZ2AB8CTjCsDY2eRrUNQEgGTJK26Ks2SdSSa8",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1657113726170,
"version": 2,
"chainId": 84,
"sender": "3MwvooYHA22kyPsQkRNQ8zkqaVQaSvwAuz2",
"senderPublicKey": "7Sz8q9VzovjXEiBaupHd5syNkwyUfLaKf4pwETwksZLT",
"proofs": [
"2f4QJgya4U9Bpp3vi4CcNPEAxdKrxzDDAh25gUNgmSK8Cc7riSWxhE2wZToShZyV36ByCNbrChF9uAy32bxagG75"
],
"script": "base64:BgIMCAISAwoBARIDCgEBAAIBaQEHcHJvY2VzcwEFZGVwdGgEBWNsYWltCQD8BwQFBHRoaXMCBWNsYWltCQDMCAIFBWRlcHRoBQNuaWwFA25pbAMJAAACBQVjbGFpbQUFY2xhaW0DCQAAAgUFZGVwdGgAAAkAlAoCBQNuaWwFBHVuaXQEA3JlcwkA/AcEBQR0aGlzAgdwcm9jZXNzCQDMCAIJAGUCBQVkZXB0aAABBQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAlAoCBQNuaWwFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQVjbGFpbQEFZGVwdGgECmNoZWNrRGVwdGgEByRtYXRjaDAJAJoIAgUEdGhpcwIEdGVzdAMJAAECBQckbWF0Y2gwAgRVbml0BQR1bml0AwkAAQIFByRtYXRjaDACA0ludAQDbnVtBQckbWF0Y2gwAwMJAQIhPQIFA251bQAACQECIT0CCQBlAgUDbnVtAAEFBWRlcHRoBwkAAgECBW9vb3BzBQR1bml0CQACAQILTWF0Y2ggZXJyb3IDCQAAAgUKY2hlY2tEZXB0aAUKY2hlY2tEZXB0aAkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgR0ZXN0BQVkZXB0aAUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuABWzytc=",
"height": 2127872,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EEB1kxiyWNTrthSru6Qc2Sgmu3umgkdzcJhGtXCgxqgV
Next: none
Diff:
Old | New | | Differences |
---|
29 | 29 | | else if ($isInstanceOf(f, "Int")) |
---|
30 | 30 | | then { |
---|
31 | 31 | | let g = f |
---|
32 | | - | if (((g - 1) != b)) |
---|
| 32 | + | if (if ((g != 0)) |
---|
| 33 | + | then ((g - 1) != b) |
---|
| 34 | + | else false) |
---|
33 | 35 | | then throw("ooops") |
---|
34 | 36 | | else unit |
---|
35 | 37 | | } |
---|
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(a) |
---|
7 | 7 | | func process (b) = { |
---|
8 | 8 | | let c = invoke(this, "claim", [b], nil) |
---|
9 | 9 | | if ((c == c)) |
---|
10 | 10 | | then if ((b == 0)) |
---|
11 | 11 | | then $Tuple2(nil, unit) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let d = invoke(this, "process", [(b - 1)], nil) |
---|
14 | 14 | | if ((d == d)) |
---|
15 | 15 | | then $Tuple2(nil, d) |
---|
16 | 16 | | else throw("Strict value is not equal to itself.") |
---|
17 | 17 | | } |
---|
18 | 18 | | else throw("Strict value is not equal to itself.") |
---|
19 | 19 | | } |
---|
20 | 20 | | |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(a) |
---|
24 | 24 | | func claim (b) = { |
---|
25 | 25 | | let e = { |
---|
26 | 26 | | let f = getInteger(this, "test") |
---|
27 | 27 | | if ($isInstanceOf(f, "Unit")) |
---|
28 | 28 | | then unit |
---|
29 | 29 | | else if ($isInstanceOf(f, "Int")) |
---|
30 | 30 | | then { |
---|
31 | 31 | | let g = f |
---|
32 | | - | if (((g - 1) != b)) |
---|
| 32 | + | if (if ((g != 0)) |
---|
| 33 | + | then ((g - 1) != b) |
---|
| 34 | + | else false) |
---|
33 | 35 | | then throw("ooops") |
---|
34 | 36 | | else unit |
---|
35 | 37 | | } |
---|
36 | 38 | | else throw("Match error") |
---|
37 | 39 | | } |
---|
38 | 40 | | if ((e == e)) |
---|
39 | 41 | | then $Tuple2([IntegerEntry("test", b)], unit) |
---|
40 | 42 | | else throw("Strict value is not equal to itself.") |
---|
41 | 43 | | } |
---|
42 | 44 | | |
---|
43 | 45 | | |
---|