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:
OldNewDifferences
55
66 @Callable(i)
77 func setOption (variable,value) = {
8- let adminList = match getString(this, "admin_list3") {
8+ let adminList = match getString(this, "admin_list") {
99 case _: Unit =>
1010 "unset"
1111 case x: String =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func setOption (variable,value) = {
8- let adminList = match getString(this, "admin_list3") {
8+ let adminList = match getString(this, "admin_list") {
99 case _: Unit =>
1010 "unset"
1111 case x: String =>
1212 x
1313 case _ =>
1414 throw("Match error")
1515 }
1616 let callerAddressStr = toString(i.caller)
1717 let testadr = base58'3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7'
1818 if ((adminList != "unset"))
1919 then {
2020 let test = getString(Address(testadr), callerAddressStr)
2121 let isAdmin = match test {
2222 case x: String =>
2323 x
2424 case _: Unit =>
2525 "no admin"
2626 case _ =>
2727 throw("Match error")
2828 }
2929 if ((isAdmin != "no admin"))
3030 then $Tuple2([StringEntry(variable, value)], unit)
3131 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
3232 }
3333 else throw("Unset admin list")
3434 }
3535
3636
3737 @Verifier(tx)
3838 func verify () = match tx {
3939 case _ =>
4040 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4141 }
4242

github/deemru/w8io/169f3d6 
24.03 ms