tx · 4XgDwQucf1HYWk7AZ3RYCLSQsKu5Xsy92HLfvUGhfmsc
3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat: -0.00100000 Waves
2023.08.22 12:35 [2721643] smart account 3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat > SELF 0.00000000 Waves
{
"type": 13,
"id": "4XgDwQucf1HYWk7AZ3RYCLSQsKu5Xsy92HLfvUGhfmsc",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1692696982387,
"version": 2,
"chainId": 84,
"sender": "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat",
"senderPublicKey": "AwWYbCDs6GDxAT6diG2mfEqD7tFz9JXu9k234FS135kR",
"proofs": [
"4gPcD4Q1jWhv7oMyumJgZWUwH5WYzXhEyP7DRvHHiST5ieHdK6YWFmMgm4nvkoUPWm1U3W9d68cRHYfysa4KZXoa"
],
"script": "base64:BgIGCAISABIABAAFcG9vbDECIzNONUp1NjR1VFB1YVI0TTRmOVlCNUxSWVJOSjM4Mk1XcmF0AAVwb29sMgIjM015UnZvWkpMMnM1Nk42VEs4UlgxaUpaY0NYWmtjNzdoY1gABWZhcm0yAiMzTjJISFpYWFZuOTE0UXVUeFRBTng2dml6dVpnZUtSSk12agEFZnVuYzMCBmNhbGxlcgZvcmlnaW4DBgkAAgEJAKwCAgkArAICCQCsAgICCGNhbGxlcjogBQZjYWxsZXICCiwgb3JpZ2luOiAFBm9yaWdpbgAAAgFpAQVmdW5jMgAEBmNhbGxlcgkApQgBCAUBaQZjYWxsZXIEBm9yaWdpbgkApQgBCAUBaQxvcmlnaW5DYWxsZXIDBgkAAgEJAKwCAgkArAICCQCsAgICCGNhbGxlcjogBQZjYWxsZXICCiwgb3JpZ2luOiAFBm9yaWdpbgUDbmlsAWkBBWZ1bmMxAAQCbm4JAPwHBAkBB0FkZHJlc3MBCQDZBAEFBXBvb2wyAgVmdW5jMgUDbmlsBQNuaWwDCQAAAgUCbm4FAm5uBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4Agz1LNg==",
"height": 2721643,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9tEweGEetHmpbkqyCG9ygjNnbDHexGZByhud6pW8EYZb
Next: F2qfJveEP5yHNnuE3aVNKCeTzXVgaPVCquFqCnPiLcQ8
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let pool1 = "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat" |
---|
| 5 | + | |
---|
| 6 | + | let pool2 = "3MyRvoZJL2s56N6TK8RX1iJZcCXZkc77hcX" |
---|
| 7 | + | |
---|
| 8 | + | let farm2 = "3N2HHZXXVn914QuTxTANx6vizuZgeKRJMvj" |
---|
| 9 | + | |
---|
| 10 | + | func func3 (caller,origin) = if (true) |
---|
| 11 | + | then throw(((("caller: " + caller) + ", origin: ") + origin)) |
---|
| 12 | + | else 0 |
---|
4 | 13 | | |
---|
5 | 14 | | |
---|
6 | 15 | | @Callable(i) |
---|
7 | | - | func brrrr () = [StringEntry("Bubi", "Gufi")] |
---|
| 16 | + | func func2 () = { |
---|
| 17 | + | let caller = toString(i.caller) |
---|
| 18 | + | let origin = toString(i.originCaller) |
---|
| 19 | + | if (true) |
---|
| 20 | + | then throw(((("caller: " + caller) + ", origin: ") + origin)) |
---|
| 21 | + | else nil |
---|
| 22 | + | } |
---|
8 | 23 | | |
---|
9 | 24 | | |
---|
10 | 25 | | |
---|
11 | 26 | | @Callable(i) |
---|
12 | | - | func default () = [StringEntry("Ufff", "frufff")] |
---|
13 | | - | |
---|
14 | | - | |
---|
15 | | - | |
---|
16 | | - | @Callable(i) |
---|
17 | | - | func trrrr () = { |
---|
18 | | - | let r = invoke(Address(base58'3Myb6G8DkdBb8YcZzhrky65HrmiNuac3kvS'), unit, nil, nil) |
---|
19 | | - | if ((r == r)) |
---|
| 27 | + | func func1 () = { |
---|
| 28 | + | let nn = invoke(Address(fromBase58String(pool2)), "func2", nil, nil) |
---|
| 29 | + | if ((nn == nn)) |
---|
20 | 30 | | then nil |
---|
21 | 31 | | else throw("Strict value is not equal to itself.") |
---|
22 | 32 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let pool1 = "3N5Ju64uTPuaR4M4f9YB5LRYRNJ382MWrat" |
---|
| 5 | + | |
---|
| 6 | + | let pool2 = "3MyRvoZJL2s56N6TK8RX1iJZcCXZkc77hcX" |
---|
| 7 | + | |
---|
| 8 | + | let farm2 = "3N2HHZXXVn914QuTxTANx6vizuZgeKRJMvj" |
---|
| 9 | + | |
---|
| 10 | + | func func3 (caller,origin) = if (true) |
---|
| 11 | + | then throw(((("caller: " + caller) + ", origin: ") + origin)) |
---|
| 12 | + | else 0 |
---|
4 | 13 | | |
---|
5 | 14 | | |
---|
6 | 15 | | @Callable(i) |
---|
7 | | - | func brrrr () = [StringEntry("Bubi", "Gufi")] |
---|
| 16 | + | func func2 () = { |
---|
| 17 | + | let caller = toString(i.caller) |
---|
| 18 | + | let origin = toString(i.originCaller) |
---|
| 19 | + | if (true) |
---|
| 20 | + | then throw(((("caller: " + caller) + ", origin: ") + origin)) |
---|
| 21 | + | else nil |
---|
| 22 | + | } |
---|
8 | 23 | | |
---|
9 | 24 | | |
---|
10 | 25 | | |
---|
11 | 26 | | @Callable(i) |
---|
12 | | - | func default () = [StringEntry("Ufff", "frufff")] |
---|
13 | | - | |
---|
14 | | - | |
---|
15 | | - | |
---|
16 | | - | @Callable(i) |
---|
17 | | - | func trrrr () = { |
---|
18 | | - | let r = invoke(Address(base58'3Myb6G8DkdBb8YcZzhrky65HrmiNuac3kvS'), unit, nil, nil) |
---|
19 | | - | if ((r == r)) |
---|
| 27 | + | func func1 () = { |
---|
| 28 | + | let nn = invoke(Address(fromBase58String(pool2)), "func2", nil, nil) |
---|
| 29 | + | if ((nn == nn)) |
---|
20 | 30 | | then nil |
---|
21 | 31 | | else throw("Strict value is not equal to itself.") |
---|
22 | 32 | | } |
---|
23 | 33 | | |
---|
24 | 34 | | |
---|