tx · J3G7AuBkC9XyrVmQahnY5TwdFJVCFGyVYk96P6QJVirn

3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7:  -0.01000000 Waves

2023.02.01 07:06 [2430047] smart account 3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7 > SELF 0.00000000 Waves

{ "type": 13, "id": "J3G7AuBkC9XyrVmQahnY5TwdFJVCFGyVYk96P6QJVirn", "fee": 1000000, "feeAssetId": null, "timestamp": 1675224345089, "version": 2, "chainId": 84, "sender": "3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7", "senderPublicKey": "DRVunPmv4kK17ezSeaSFyRHgBGoUSDEeB7t4ZvNNs2V9", "proofs": [ "4VnZz9QrtesHaKsCgK9CugKT4TRcjF1iw18UsYyLpEsNRMcuj7CtZSKssHxqZ5SS1aLEVNCPw7SPuaGDnCe5BeKA" ], "script": "base64:BgICCAIAAAECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5QxXsNA==", "height": 2430047, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ACUcLfuKe7JykCCK9QRd8PY6AXa6YsyRawwb2Baeitba Next: none Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
5-
6-@Callable(i)
7-func setOption (variable,value) = {
8- let adminList = match getString(this, "admin_list2") {
9- case _: Unit =>
10- "unset"
11- case x: String =>
12- x
13- case _ =>
14- throw("Match error")
15- }
16- let callerAddressStr = toString(i.caller)
17- if ((adminList != "unset"))
18- then {
19- let isAdmin = match getString(this, callerAddressStr) {
20- case _: Unit =>
21- "no admin"
22- case x: String =>
23- x
24- case _ =>
25- throw("Match error")
26- }
27- if ((isAdmin != "no admin"))
28- then $Tuple2([StringEntry(variable, value)], unit)
29- else throw(((((("You not admin: " + adminList) + " isAdmin: ") + isAdmin) + "callerAddressStr: ") + callerAddressStr))
30- }
31- else throw("Unset admin list")
32- }
335
346
357 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
5-
6-@Callable(i)
7-func setOption (variable,value) = {
8- let adminList = match getString(this, "admin_list2") {
9- case _: Unit =>
10- "unset"
11- case x: String =>
12- x
13- case _ =>
14- throw("Match error")
15- }
16- let callerAddressStr = toString(i.caller)
17- if ((adminList != "unset"))
18- then {
19- let isAdmin = match getString(this, callerAddressStr) {
20- case _: Unit =>
21- "no admin"
22- case x: String =>
23- x
24- case _ =>
25- throw("Match error")
26- }
27- if ((isAdmin != "no admin"))
28- then $Tuple2([StringEntry(variable, value)], unit)
29- else throw(((((("You not admin: " + adminList) + " isAdmin: ") + isAdmin) + "callerAddressStr: ") + callerAddressStr))
30- }
31- else throw("Unset admin list")
32- }
335
346
357 @Verifier(tx)
368 func verify () = match tx {
379 case _ =>
3810 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3911 }
4012

github/deemru/w8io/169f3d6 
21.81 ms