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 | |
---|---|---|---|
42 | 42 | @Verifier(j) | |
43 | 43 | func k () = { | |
44 | 44 | let e = j | |
45 | - | sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) | |
45 | + | if ($isInstanceOf(e, "DataTransaction")) | |
46 | + | then { | |
47 | + | let l = e | |
48 | + | false | |
49 | + | } | |
50 | + | else sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) | |
46 | 51 | } | |
47 | 52 |
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 = getString(addressFromStringValue(d), g) | |
23 | 23 | let i = { | |
24 | 24 | let e = h | |
25 | 25 | if ($isInstanceOf(e, "String")) | |
26 | 26 | then { | |
27 | 27 | let f = e | |
28 | 28 | f | |
29 | 29 | } | |
30 | 30 | else if ($isInstanceOf(e, "Unit")) | |
31 | 31 | then "no admin" | |
32 | 32 | else throw("Match error") | |
33 | 33 | } | |
34 | 34 | if ((i != "no admin")) | |
35 | 35 | then $Tuple2([StringEntry(b, c)], unit) | |
36 | 36 | else throw((((((("You not admin: " + d) + ", isAdmin: ") + i) + ", callerAddressStr: ") + g) + ", ")) | |
37 | 37 | } | |
38 | 38 | else throw("Unset admin list") | |
39 | 39 | } | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | @Verifier(j) | |
43 | 43 | func k () = { | |
44 | 44 | let e = j | |
45 | - | sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) | |
45 | + | if ($isInstanceOf(e, "DataTransaction")) | |
46 | + | then { | |
47 | + | let l = e | |
48 | + | false | |
49 | + | } | |
50 | + | else sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) | |
46 | 51 | } | |
47 | 52 |
github/deemru/w8io/169f3d6 27.82 ms ◑