tx · 6vUFbjfbpUZS49RSnUMy2XHomoFJWoNuCo2ip5RpCmUQ

3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6:  -0.01000000 Waves

2023.01.31 22:38 [2429550] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "6vUFbjfbpUZS49RSnUMy2XHomoFJWoNuCo2ip5RpCmUQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1675193976567, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "2daHfUedipm8jWnBEtuWEutKr1H1jXRooowAE1NWLjD69TZop9gTtx5mvJtJmtoN4bkLi2HkgH2ad88k78eabuNq" ], "script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAR0ZXN0CQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCWFkbWluTGlzdAUQY2FsbGVyQWRkcmVzc1N0cgQHaXNBZG1pbgQHJG1hdGNoMAUEdGVzdAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgDCQABAgUHJG1hdGNoMAIEVW5pdAIIbm8gYWRtaW4JAAIBAgtNYXRjaCBlcnJvcgMJAQIhPQIFB2lzQWRtaW4CCG5vIGFkbWluCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgUIdmFyaWFibGUFBXZhbHVlBQNuaWwFBHVuaXQJAAIBCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICAg9Zb3Ugbm90IGFkbWluOiAFCWFkbWluTGlzdAILLCBpc0FkbWluOiAFB2lzQWRtaW4CFCwgY2FsbGVyQWRkcmVzc1N0cjogBRBjYWxsZXJBZGRyZXNzU3RyAgIsIAkAAgECEFVuc2V0IGFkbWluIGxpc3QBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleY5TUKM=", "height": 2429550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DgCJEjFWeAztV7XxKPFApK3QpSVGMWsHLSVmJ339PffL Next: 7tADDsjGjKL2YsTUVbYEAZrjX6P2EYc2sVPsXqr7R6YD Diff:
OldNewDifferences
1414 throw("Match error")
1515 }
1616 let callerAddressStr = toString(i.caller)
17- let testadr = base58'3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7'
1817 if ((adminList != "unset"))
1918 then {
20- let test = getString(Address(testadr), callerAddressStr)
19+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
2120 let isAdmin = match test {
2221 case x: String =>
2322 x
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func setOption (variable,value) = {
88 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)
17- let testadr = base58'3N6qFzWmhjoTvsk1bC2iN38i2qH95pqc6S7'
1817 if ((adminList != "unset"))
1918 then {
20- let test = getString(Address(testadr), callerAddressStr)
19+ let test = getString(addressFromStringValue(adminList), callerAddressStr)
2120 let isAdmin = match test {
2221 case x: String =>
2322 x
2423 case _: Unit =>
2524 "no admin"
2625 case _ =>
2726 throw("Match error")
2827 }
2928 if ((isAdmin != "no admin"))
3029 then $Tuple2([StringEntry(variable, value)], unit)
3130 else throw((((((("You not admin: " + adminList) + ", isAdmin: ") + isAdmin) + ", callerAddressStr: ") + callerAddressStr) + ", "))
3231 }
3332 else throw("Unset admin list")
3433 }
3534
3635
3736 @Verifier(tx)
3837 func verify () = match tx {
3938 case _ =>
4039 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4140 }
4241

github/deemru/w8io/169f3d6 
27.90 ms