tx · 45aJT4uvk6Q2Qb2HVrcLYY4s5buKQrApw1tvap9o4srz
3NC2oXMZ3tWcoeVShPVaUPxSS7B4m2FWB72: -0.01000000 Waves
2021.08.25 18:02 [1674008] smart account 3NC2oXMZ3tWcoeVShPVaUPxSS7B4m2FWB72 > SELF 0.00000000 Waves
{
"type": 13,
"id": "45aJT4uvk6Q2Qb2HVrcLYY4s5buKQrApw1tvap9o4srz",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1629903783904,
"version": 1,
"sender": "3NC2oXMZ3tWcoeVShPVaUPxSS7B4m2FWB72",
"senderPublicKey": "4HMZkY3VnMxV5zShjWkqRFuKxcbbtDWxHrnaYiSmRS1D",
"proofs": [
"2DUFJgirVKDjCnYbScFqTZ8GSAzFXTbuHi5eZJwSYXt8bywq5x8kczB36PHQFtyEf4eFBiE6AkY3DipYE2ou51K"
],
"script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAABcgAAAAEAAAABcgQAAAABdgMJAABmAAAAAgUAAAABcgAAAAAAAAAAAAkAA/wAAAAECAUAAAABaQAAAAZjYWxsZXICAAAAAXIJAARMAAAAAgkAAGUAAAACBQAAAAFyAAAAAAAAAAABBQAAAANuaWwJAARMAAAAAgkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAUAAAADbmlsAAAAAAAAAAAAAwkAAAAAAAACBQAAAAF2BQAAAAF2CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50CAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAdhc3NldElkBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAEV0FyE=",
"chainId": 84,
"height": 1674008,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CQTtCdydAQ8TkgBfKHo7CaKwynHbxDQekUN7VWLbKvcH
Next: CwBr4hREhxTRnF4o4MaiVQ3NTmn2r7nQezdHAhNbGbvE
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func r (r) = { |
---|
8 | | - | let v = invoke(i.caller, "r", [(r - 1)], [i.payments[0]]) |
---|
| 8 | + | let v = if ((r > 0)) |
---|
| 9 | + | then invoke(i.caller, "r", [(r - 1)], [i.payments[0]]) |
---|
| 10 | + | else 0 |
---|
9 | 11 | | if ((v == v)) |
---|
10 | | - | then if ((r > 0)) |
---|
11 | | - | then [ScriptTransfer(i.caller, i.payments[0].amount, i.payments[0].assetId)] |
---|
12 | | - | else nil |
---|
| 12 | + | then [ScriptTransfer(i.caller, i.payments[0].amount, i.payments[0].assetId)] |
---|
13 | 13 | | else throw("Strict value is not equal to itself.") |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func r (r) = { |
---|
8 | | - | let v = invoke(i.caller, "r", [(r - 1)], [i.payments[0]]) |
---|
| 8 | + | let v = if ((r > 0)) |
---|
| 9 | + | then invoke(i.caller, "r", [(r - 1)], [i.payments[0]]) |
---|
| 10 | + | else 0 |
---|
9 | 11 | | if ((v == v)) |
---|
10 | | - | then if ((r > 0)) |
---|
11 | | - | then [ScriptTransfer(i.caller, i.payments[0].amount, i.payments[0].assetId)] |
---|
12 | | - | else nil |
---|
| 12 | + | then [ScriptTransfer(i.caller, i.payments[0].amount, i.payments[0].assetId)] |
---|
13 | 13 | | else throw("Strict value is not equal to itself.") |
---|
14 | 14 | | } |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|