tx · 7qrwqv7bM5YgDSHdX41ptzA9FcGUuWGAawyah9bmcjPD
3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx: -0.01000000 Waves
2023.04.04 15:24 [2519815] smart account 3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx > SELF 0.00000000 Waves
{
"type": 13,
"id": "7qrwqv7bM5YgDSHdX41ptzA9FcGUuWGAawyah9bmcjPD",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1680611050585,
"version": 2,
"chainId": 84,
"sender": "3N8oN3yLcrZHa6DcDfqE9Rz8GkzudXjnmrx",
"senderPublicKey": "81tRXAgqfPdSG8kxEMcAuyLeBBRRrzyqQLXCtCj1dpk2",
"proofs": [
"26JLzCVYi1Bb1DDsucCwxPq5wH8xtJXvoyrW7CKjDEodxMJZAQnzQjeYnvvwgBC56hVCAFYqf8p7GSGVeLq5jogg"
],
"script": "base64:BgIGCAISABIAAwAGa2V5QmFyAgRiYXJfAQliYXJPclplcm8ACQELdmFsdWVPckVsc2UCCQCfCAEFBmtleUJhcgAAAQdmdW5jQmFyAAkAzAgCCQEMSW50ZWdlckVudHJ5AgUGa2V5QmFyAAEFA25pbAIBaQELY2FsbGFibGVGb28ACQCUCgIFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgUGa2V5QmFyCQBkAgkBCWJhck9yWmVybwAAAQUDbmlsAWkBA2ZvbwAEAWIJAQdmdW5jQmFyAAMJAAACBQFiBQFiBAFhCQD9BwQFBHRoaXMCC2NhbGxhYmxlRm9vBQNuaWwFA25pbAMJAAACBQFhBQFhBQFiCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuACSxKK0=",
"height": 2519815,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5ebDJP2nJKoJqPL3dzTc2DAUTTymqZAXcACY2tSGUGk4
Next: C9q8a3FUsv9fRLpzNSs343yTaigo9XSrWCuj1JfCWugh
Diff:
Old | New | | Differences |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func callableFoo () = [IntegerEntry(keyBar, (barOrZero() + 1))] |
---|
| 13 | + | func callableFoo () = $Tuple2(nil, [IntegerEntry(keyBar, (barOrZero() + 1))]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
|
19 | 19 | | let b = funcBar() |
---|
20 | 20 | | if ((b == b)) |
---|
21 | 21 | | then { |
---|
22 | | - | let a = invoke(this, "callableFoo", nil, nil) |
---|
23 | | - | b |
---|
| 22 | + | let a = reentrantInvoke(this, "callableFoo", nil, nil) |
---|
| 23 | + | if ((a == a)) |
---|
| 24 | + | then b |
---|
| 25 | + | else throw("Strict value is not equal to itself.") |
---|
24 | 26 | | } |
---|
25 | 27 | | else throw("Strict value is not equal to itself.") |
---|
26 | 28 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let keyBar = "bar_" |
---|
5 | 5 | | |
---|
6 | 6 | | func barOrZero () = valueOrElse(getInteger(keyBar), 0) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func funcBar () = [IntegerEntry(keyBar, 1)] |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | @Callable(i) |
---|
13 | | - | func callableFoo () = [IntegerEntry(keyBar, (barOrZero() + 1))] |
---|
| 13 | + | func callableFoo () = $Tuple2(nil, [IntegerEntry(keyBar, (barOrZero() + 1))]) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(i) |
---|
18 | 18 | | func foo () = { |
---|
19 | 19 | | let b = funcBar() |
---|
20 | 20 | | if ((b == b)) |
---|
21 | 21 | | then { |
---|
22 | | - | let a = invoke(this, "callableFoo", nil, nil) |
---|
23 | | - | b |
---|
| 22 | + | let a = reentrantInvoke(this, "callableFoo", nil, nil) |
---|
| 23 | + | if ((a == a)) |
---|
| 24 | + | then b |
---|
| 25 | + | else throw("Strict value is not equal to itself.") |
---|
24 | 26 | | } |
---|
25 | 27 | | else throw("Strict value is not equal to itself.") |
---|
26 | 28 | | } |
---|
27 | 29 | | |
---|
28 | 30 | | |
---|