tx · DgCJEjFWeAztV7XxKPFApK3QpSVGMWsHLSVmJ339PffL 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.01.31 22:29 [2429544] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "DgCJEjFWeAztV7XxKPFApK3QpSVGMWsHLSVmJ339PffL", "fee": 1000000, "feeAssetId": null, "timestamp": 1675193432108, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "3pPihisfbViSKNUqkuAGtWKTi2qjLXzjk3bGy9XNG4MweSYDJzd692Q1ghp8N3LCGWUoEBqADw7h7SU8UDa8TAam" ], "script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIEB3Rlc3RhZHIBGgFUuZCWXFJ6ABkn28iHztGNQI8TaOF+ZR88AwkBAiE9AgUJYWRtaW5MaXN0AgV1bnNldAQEdGVzdAkAnQgCCQEHQWRkcmVzcwEFB3Rlc3RhZHIFEGNhbGxlckFkZHJlc3NTdHIEB2lzQWRtaW4EByRtYXRjaDAFBHRlc3QDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4AwkAAQIFByRtYXRjaDACBFVuaXQCCG5vIGFkbWluCQACAQILTWF0Y2ggZXJyb3IDCQECIT0CBQdpc0FkbWluAghubyBhZG1pbgkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQIFCHZhcmlhYmxlBQV2YWx1ZQUDbmlsBQR1bml0CQACAQkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgIPWW91IG5vdCBhZG1pbjogBQlhZG1pbkxpc3QCCywgaXNBZG1pbjogBQdpc0FkbWluAhQsIGNhbGxlckFkZHJlc3NTdHI6IAUQY2FsbGVyQWRkcmVzc1N0cgICLCAJAAIBAhBVbnNldCBhZG1pbiBsaXN0AQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXnMHq+R", "height": 2429544, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BMKDcZbKQk2BCdNEiQkesHbhycdhZ2rxNGRzdDaHMWb4 Next: 6vUFbjfbpUZS49RSnUMy2XHomoFJWoNuCo2ip5RpCmUQ Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func setOption (variable,value) = { | |
8 | - | let adminList = match getString(this, "admin_ | |
8 | + | let adminList = match getString(this, "admin_list") { | |
9 | 9 | case _: Unit => | |
10 | 10 | "unset" | |
11 | 11 | case x: String => |
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(i) | |
7 | 7 | func setOption (variable,value) = { | |
8 | - | let adminList = match getString(this, "admin_ | |
8 | + | let adminList = match getString(this, "admin_list") { | |
9 | 9 | case _: Unit => | |
10 | 10 | "unset" | |
11 | 11 | case x: String => | |
12 | 12 | x | |
13 | 13 | case _ => | |
14 | 14 | throw("Match error") | |
15 | 15 | } | |
16 | 16 | let callerAddressStr = toString(i.caller) | |
17 | 17 | let testadr = base58'3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7' | |
18 | 18 | if ((adminList != "unset")) | |
19 | 19 | then { | |
20 | 20 | let test = getString(Address(testadr), callerAddressStr) | |
21 | 21 | let isAdmin = match test { | |
22 | 22 | case x: String => | |
23 | 23 | x | |
24 | 24 | case _: Unit => | |
25 | 25 | "no admin" | |
26 | 26 | case _ => | |
27 | 27 | throw("Match error") | |
28 | 28 | } | |
29 | 29 | if ((isAdmin != "no admin")) | |
30 | 30 | then $Tuple2([StringEntry(variable, value)], unit) | |
31 | 31 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
32 | 32 | } | |
33 | 33 | else throw("Unset admin list") | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Verifier(tx) | |
38 | 38 | func verify () = match tx { | |
39 | 39 | case _ => | |
40 | 40 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
41 | 41 | } | |
42 | 42 |
github/deemru/w8io/169f3d6 24.03 ms ◑