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