tx · 7ezLxHDk3hpatzRXwXTQTZ26CDFV58GtpT9UHXxX76dr
3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves
2023.01.31 21:54 [2429506] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "7ezLxHDk3hpatzRXwXTQTZ26CDFV58GtpT9UHXxX76dr",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1675191293000,
"version": 2,
"chainId": 84,
"sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6",
"senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS",
"proofs": [
"nZ4gYXixKjQxzGaeBvNUn5sv8TsMoyx6JReB6pvZcyPZrR4NrcsSMPCvDSHFXWavTXAsJjRPYqWSTTq6wWjfm8J"
],
"script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAdpc0FkbWluBAckbWF0Y2gwCQCdCAIFBHRoaXMFEGNhbGxlckFkZHJlc3NTdHIDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4AwkAAQIFByRtYXRjaDACBFVuaXQCCG5vIGFkbWluCQACAQILTWF0Y2ggZXJyb3IDCQECIT0CBQdpc0FkbWluAghubyBhZG1pbgkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQIFCHZhcmlhYmxlBQV2YWx1ZQUDbmlsBQR1bml0CQACAQkArAICCQCsAgIJAKwCAgkArAICCQCsAgICD1lvdSBub3QgYWRtaW46IAUJYWRtaW5MaXN0AgogaXNBZG1pbjogBQdpc0FkbWluAhMgY2FsbGVyQWRkcmVzc1N0cjogBRBjYWxsZXJBZGRyZXNzU3RyCQACAQIQVW5zZXQgYWRtaW4gbGlzdAECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5VeK8uw==",
"height": 2429506,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CAM5PZfY8jGXYwXJKNFaZWtBwwsKUGtUsbmNRYKMYWaG
Next: 3fHozuthccQphc45kWqP3bSZJes9NqTjQ4UxuYtmmJCv
Diff:
Old | New | | Differences |
---|
21 | 21 | | then { |
---|
22 | 22 | | let h = { |
---|
23 | 23 | | let e = getString(this, g) |
---|
24 | | - | if ($isInstanceOf(e, "Unit")) |
---|
25 | | - | then "no admin" |
---|
26 | | - | else if ($isInstanceOf(e, "String")) |
---|
27 | | - | then { |
---|
28 | | - | let f = e |
---|
29 | | - | f |
---|
30 | | - | } |
---|
| 24 | + | if ($isInstanceOf(e, "String")) |
---|
| 25 | + | then { |
---|
| 26 | + | let f = e |
---|
| 27 | + | f |
---|
| 28 | + | } |
---|
| 29 | + | else if ($isInstanceOf(e, "Unit")) |
---|
| 30 | + | then "no admin" |
---|
31 | 31 | | else throw("Match error") |
---|
32 | 32 | | } |
---|
33 | 33 | | if ((h != "no admin")) |
---|
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 setOption (b,c) = { |
---|
8 | 8 | | let d = { |
---|
9 | 9 | | let e = getString(this, "admin_list") |
---|
10 | 10 | | if ($isInstanceOf(e, "Unit")) |
---|
11 | 11 | | then "unset" |
---|
12 | 12 | | else if ($isInstanceOf(e, "String")) |
---|
13 | 13 | | then { |
---|
14 | 14 | | let f = e |
---|
15 | 15 | | f |
---|
16 | 16 | | } |
---|
17 | 17 | | else throw("Match error") |
---|
18 | 18 | | } |
---|
19 | 19 | | let g = toString(a.caller) |
---|
20 | 20 | | if ((d != "unset")) |
---|
21 | 21 | | then { |
---|
22 | 22 | | let h = { |
---|
23 | 23 | | let e = getString(this, g) |
---|
24 | | - | if ($isInstanceOf(e, "Unit")) |
---|
25 | | - | then "no admin" |
---|
26 | | - | else if ($isInstanceOf(e, "String")) |
---|
27 | | - | then { |
---|
28 | | - | let f = e |
---|
29 | | - | f |
---|
30 | | - | } |
---|
| 24 | + | if ($isInstanceOf(e, "String")) |
---|
| 25 | + | then { |
---|
| 26 | + | let f = e |
---|
| 27 | + | f |
---|
| 28 | + | } |
---|
| 29 | + | else if ($isInstanceOf(e, "Unit")) |
---|
| 30 | + | then "no admin" |
---|
31 | 31 | | else throw("Match error") |
---|
32 | 32 | | } |
---|
33 | 33 | | if ((h != "no admin")) |
---|
34 | 34 | | then $Tuple2([StringEntry(b, c)], unit) |
---|
35 | 35 | | else throw(((((("You not admin: " + d) + " isAdmin: ") + h) + " callerAddressStr: ") + g)) |
---|
36 | 36 | | } |
---|
37 | 37 | | else throw("Unset admin list") |
---|
38 | 38 | | } |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | 41 | | @Verifier(i) |
---|
42 | 42 | | func j () = { |
---|
43 | 43 | | let e = i |
---|
44 | 44 | | sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
45 | 45 | | } |
---|
46 | 46 | | |
---|