tx · EEB1kxiyWNTrthSru6Qc2Sgmu3umgkdzcJhGtXCgxqgV

3MwvooYHA22kyPsQkRNQ8zkqaVQaSvwAuz2:  -0.00100000 Waves

2022.07.06 16:08 [2127861] smart account 3MwvooYHA22kyPsQkRNQ8zkqaVQaSvwAuz2 > SELF 0.00000000 Waves

{ "type": 13, "id": "EEB1kxiyWNTrthSru6Qc2Sgmu3umgkdzcJhGtXCgxqgV", "fee": 100000, "feeAssetId": null, "timestamp": 1657113019545, "version": 2, "chainId": 84, "sender": "3MwvooYHA22kyPsQkRNQ8zkqaVQaSvwAuz2", "senderPublicKey": "7Sz8q9VzovjXEiBaupHd5syNkwyUfLaKf4pwETwksZLT", "proofs": [ "2qVNyCRZrLBzpy32YJfAyGJydK7nXGq1xTidkWd4MoeWjt1xub4jYogQNq84LaR6cEAuWKqhDXUbtqEro1rm4VAp" ], "script": "base64:BgIMCAISAwoBARIDCgEBAAIBaQEHcHJvY2VzcwEFZGVwdGgEBWNsYWltCQD8BwQFBHRoaXMCBWNsYWltCQDMCAIFBWRlcHRoBQNuaWwFA25pbAMJAAACBQVjbGFpbQUFY2xhaW0DCQAAAgUFZGVwdGgAAAkAlAoCBQNuaWwFBHVuaXQEA3JlcwkA/AcEBQR0aGlzAgdwcm9jZXNzCQDMCAIJAGUCBQVkZXB0aAABBQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAlAoCBQNuaWwFA3JlcwkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQVjbGFpbQEFZGVwdGgECmNoZWNrRGVwdGgEByRtYXRjaDAJAJoIAgUEdGhpcwIEdGVzdAMJAAECBQckbWF0Y2gwAgRVbml0BQR1bml0AwkAAQIFByRtYXRjaDACA0ludAQDbnVtBQckbWF0Y2gwAwkBAiE9AgkAZQIFA251bQABBQVkZXB0aAkAAgECBW9vb3BzBQR1bml0CQACAQILTWF0Y2ggZXJyb3IDCQAAAgUKY2hlY2tEZXB0aAUKY2hlY2tEZXB0aAkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgR0ZXN0BQVkZXB0aAUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAOmNL/g=", "height": 2127861, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CpJSyW4v1feiGgrgj1zhwY9rh3JxJLzGA2QgRqJ4s8ST Next: 3BdbXYJtZ2AB8CTjCsDY2eRrUNQEgGTJK26Ks2SdSSa8 Diff:
OldNewDifferences
44
55
66 @Callable(i)
7-func call (depth,startHeight) = {
8- let checkHeight = if (if ((startHeight != 0))
9- then (height != startHeight)
10- else false)
11- then throw("invalid height")
12- else unit
13- if ((checkHeight == checkHeight))
7+func process (depth) = {
8+ let claim = invoke(this, "claim", [depth], nil)
9+ if ((claim == claim))
1410 then if ((depth == 0))
1511 then $Tuple2(nil, unit)
1612 else {
17- let startHeightNew = if ((startHeight == 0))
18- then height
19- else startHeight
20- let res = invoke(this, "call", [(depth - 1), startHeightNew], nil)
13+ let res = invoke(this, "process", [(depth - 1)], nil)
2114 if ((res == res))
2215 then $Tuple2(nil, res)
2316 else throw("Strict value is not equal to itself.")
2619 }
2720
2821
22+
23+@Callable(i)
24+func claim (depth) = {
25+ let checkDepth = match getInteger(this, "test") {
26+ case _: Unit =>
27+ unit
28+ case num: Int =>
29+ if (((num - 1) != depth))
30+ then throw("ooops")
31+ else unit
32+ case _ =>
33+ throw("Match error")
34+ }
35+ if ((checkDepth == checkDepth))
36+ then $Tuple2([IntegerEntry("test", depth)], unit)
37+ else throw("Strict value is not equal to itself.")
38+ }
39+
40+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
7-func call (depth,startHeight) = {
8- let checkHeight = if (if ((startHeight != 0))
9- then (height != startHeight)
10- else false)
11- then throw("invalid height")
12- else unit
13- if ((checkHeight == checkHeight))
7+func process (depth) = {
8+ let claim = invoke(this, "claim", [depth], nil)
9+ if ((claim == claim))
1410 then if ((depth == 0))
1511 then $Tuple2(nil, unit)
1612 else {
17- let startHeightNew = if ((startHeight == 0))
18- then height
19- else startHeight
20- let res = invoke(this, "call", [(depth - 1), startHeightNew], nil)
13+ let res = invoke(this, "process", [(depth - 1)], nil)
2114 if ((res == res))
2215 then $Tuple2(nil, res)
2316 else throw("Strict value is not equal to itself.")
2417 }
2518 else throw("Strict value is not equal to itself.")
2619 }
2720
2821
22+
23+@Callable(i)
24+func claim (depth) = {
25+ let checkDepth = match getInteger(this, "test") {
26+ case _: Unit =>
27+ unit
28+ case num: Int =>
29+ if (((num - 1) != depth))
30+ then throw("ooops")
31+ else unit
32+ case _ =>
33+ throw("Match error")
34+ }
35+ if ((checkDepth == checkDepth))
36+ then $Tuple2([IntegerEntry("test", depth)], unit)
37+ else throw("Strict value is not equal to itself.")
38+ }
39+
40+

github/deemru/w8io/169f3d6 
24.71 ms