tx · 7tADDsjGjKL2YsTUVbYEAZrjX6P2EYc2sVPsXqr7R6YD 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6: -0.01000000 Waves 2023.01.31 22:58 [2429572] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves
{ "type": 13, "id": "7tADDsjGjKL2YsTUVbYEAZrjX6P2EYc2sVPsXqr7R6YD", "fee": 1000000, "feeAssetId": null, "timestamp": 1675195101063, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "3MP1yrf9FezWBts2XpReENMFv22q8eyJeoJ9AQhayRGAmbecD9ivTSd9SdpZrYwfaX66FCA8hMaHzhYhr2MupGMH" ], "script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGlzdAUQY2FsbGVyQWRkcmVzc1N0cgQHaXNBZG1pbgQHJG1hdGNoMAUEdGVzdAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgDCQABAgUHJG1hdGNoMAIEVW5pdAIIbm8gYWRtaW4JAAIBAgtNYXRjaCBlcnJvcgMJAQIhPQIFB2lzQWRtaW4CCG5vIGFkbWluCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgUIdmFyaWFibGUFBXZhbHVlBQNuaWwFBHVuaXQJAAIBCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICAg9Zb3Ugbm90IGFkbWluOiAFCWFkbWluTGlzdAILLCBpc0FkbWluOiAFB2lzQWRtaW4CFCwgY2FsbGVyQWRkcmVzc1N0cjogBRBjYWxsZXJBZGRyZXNzU3RyAgIsIAkAAgECEFVuc2V0IGFkbWluIGxpc3QBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAg9EYXRhVHJhbnNhY3Rpb24EA2R0eAUHJG1hdGNoMAcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXllsn4O", "height": 2429572, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6vUFbjfbpUZS49RSnUMy2XHomoFJWoNuCo2ip5RpCmUQ Next: E2TeSJy2qmKwooAP3jTgCGve8srUkrmV8jsHehVwEqj1 Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | ||
36 | 36 | @Verifier(tx) | |
37 | 37 | func verify () = match tx { | |
38 | + | case dtx: DataTransaction => | |
39 | + | false | |
38 | 40 | case _ => | |
39 | 41 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
40 | 42 | } |
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_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 | if ((adminList != "unset")) | |
18 | 18 | then { | |
19 | 19 | let test = getString(addressFromStringValue(adminList), callerAddressStr) | |
20 | 20 | let isAdmin = match test { | |
21 | 21 | case x: String => | |
22 | 22 | x | |
23 | 23 | case _: Unit => | |
24 | 24 | "no admin" | |
25 | 25 | case _ => | |
26 | 26 | throw("Match error") | |
27 | 27 | } | |
28 | 28 | if ((isAdmin != "no admin")) | |
29 | 29 | then $Tuple2([StringEntry(variable, value)], unit) | |
30 | 30 | else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", ")) | |
31 | 31 | } | |
32 | 32 | else throw("Unset admin list") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Verifier(tx) | |
37 | 37 | func verify () = match tx { | |
38 | + | case dtx: DataTransaction => | |
39 | + | false | |
38 | 40 | case _ => | |
39 | 41 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
40 | 42 | } | |
41 | 43 |
github/deemru/w8io/169f3d6 21.36 ms ◑