tx · 6WTVMJ9QJ7aDniPTnezTTVMLA9QZVvcs5hA9iELtc1yR
3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves
2023.01.31 21:50 [2429502] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{
"type": 13,
"id": "6WTVMJ9QJ7aDniPTnezTTVMLA9QZVvcs5hA9iELtc1yR",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1675191049083,
"version": 2,
"chainId": 84,
"sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6",
"senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS",
"proofs": [
"vmyY4zSRVJvXtipFQwQV1YdfKaURvKzGXZJSfZWvMWeDtwUzckZece9HafPMfdq7MoDAaZcbR6Tck69kASQR75v"
],
"script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwILYWRtaW5fbGlzdDIDCQABAgUHJG1hdGNoMAIEVW5pdAIFdW5zZXQDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IEEGNhbGxlckFkZHJlc3NTdHIJAKUIAQgFAWkGY2FsbGVyAwkBAiE9AgUJYWRtaW5MaXN0AgV1bnNldAQHaXNBZG1pbgQHJG1hdGNoMAkAnQgCBQR0aGlzBRBjYWxsZXJBZGRyZXNzU3RyAwkAAQIFByRtYXRjaDACBFVuaXQCCG5vIGFkbWluAwkAAQIFByRtYXRjaDACBlN0cmluZwQBeAUHJG1hdGNoMAUBeAkAAgECC01hdGNoIGVycm9yAwkBAiE9AgUHaXNBZG1pbgIIbm8gYWRtaW4JAJQKAgkAzAgCCQELU3RyaW5nRW50cnkCBQh2YXJpYWJsZQUFdmFsdWUFA25pbAUEdW5pdAkAAgEJAKwCAgkArAICCQCsAgIJAKwCAgkArAICAg9Zb3Ugbm90IGFkbWluOiAFCWFkbWluTGlzdAIKIGlzQWRtaW46IAUHaXNBZG1pbgITIGNhbGxlckFkZHJlc3NTdHI6IAUQY2FsbGVyQWRkcmVzc1N0cgkAAgECEFVuc2V0IGFkbWluIGxpc3QBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQadVuw=",
"height": 2429502,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6Us1Y71BiT38Uwi9PYnADJYfM7GeJ3GJDdHEEjKajFEk
Next: CAM5PZfY8jGXYwXJKNFaZWtBwwsKUGtUsbmNRYKMYWaG
Diff:
Old | New | | Differences |
---|
26 | 26 | | } |
---|
27 | 27 | | if ((isAdmin != "no admin")) |
---|
28 | 28 | | then $Tuple2([StringEntry(variable, value)], unit) |
---|
29 | | - | else throw(((((("You not admin: " + adminList) + " isAdmin: ") + isAdmin) + "callerAddressStr: ") + callerAddressStr)) |
---|
| 29 | + | else throw(((((("You not admin: " + adminList) + " isAdmin: ") + isAdmin) + " callerAddressStr: ") + callerAddressStr)) |
---|
30 | 30 | | } |
---|
31 | 31 | | else throw("Unset admin list") |
---|
32 | 32 | | } |
---|
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(i) |
---|
7 | 7 | | func setOption (variable,value) = { |
---|
8 | 8 | | let adminList = match getString(this, "admin_list2") { |
---|
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 | | if ((adminList != "unset")) |
---|
18 | 18 | | then { |
---|
19 | 19 | | let isAdmin = match getString(this, callerAddressStr) { |
---|
20 | 20 | | case _: Unit => |
---|
21 | 21 | | "no admin" |
---|
22 | 22 | | case x: String => |
---|
23 | 23 | | x |
---|
24 | 24 | | case _ => |
---|
25 | 25 | | throw("Match error") |
---|
26 | 26 | | } |
---|
27 | 27 | | if ((isAdmin != "no admin")) |
---|
28 | 28 | | then $Tuple2([StringEntry(variable, value)], unit) |
---|
29 | | - | else throw(((((("You not admin: " + adminList) + " isAdmin: ") + isAdmin) + "callerAddressStr: ") + callerAddressStr)) |
---|
| 29 | + | else throw(((((("You not admin: " + adminList) + " isAdmin: ") + isAdmin) + " callerAddressStr: ") + callerAddressStr)) |
---|
30 | 30 | | } |
---|
31 | 31 | | else throw("Unset admin list") |
---|
32 | 32 | | } |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @Verifier(tx) |
---|
36 | 36 | | func verify () = match tx { |
---|
37 | 37 | | case _ => |
---|
38 | 38 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
39 | 39 | | } |
---|
40 | 40 | | |
---|