tx · 3HsnK92EvCzC4MS1o3TBktV3m5uY7WEjUoVYyKnQFHaJ

3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6:  -0.01000000 Waves

2023.01.31 21:35 [2429486] smart account 3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6 > SELF 0.00000000 Waves

{ "type": 13, "id": "3HsnK92EvCzC4MS1o3TBktV3m5uY7WEjUoVYyKnQFHaJ", "fee": 1000000, "feeAssetId": null, "timestamp": 1675190162135, "version": 2, "chainId": 84, "sender": "3MusfsY6PqDh1YnF7YyTi5ffVT16Dm2bqf6", "senderPublicKey": "GmYZFRssDr88KiZt3x4LsJ6qfqaTfMUycQTKZVdipUgS", "proofs": [ "WnECEmmVgNEoSFqhhHc42APztEomGvJYQT2tx7HbEj9aLXy1R8PW4tswEf3bK1L9HH87CBWQteyzzfRzp9orEXY" ], "script": "base64:BgIICAISBAoCCAgAAQFpAQlzZXRPcHRpb24CCHZhcmlhYmxlBXZhbHVlBAlhZG1pbkxpc3QEByRtYXRjaDAJAJ0IAgUEdGhpcwIKYWRtaW5fbGlzdAMJAAECBQckbWF0Y2gwAgRVbml0AgV1bnNldAMJAAECBQckbWF0Y2gwAgZTdHJpbmcEAXgFByRtYXRjaDAFAXgJAAIBAgtNYXRjaCBlcnJvcgQQY2FsbGVyQWRkcmVzc1N0cgkApQgBCAUBaQZjYWxsZXIDCQECIT0CBQlhZG1pbkxpc3QCBXVuc2V0BAdpc0FkbWluBAckbWF0Y2gwCQCdCAIFBHRoaXMFEGNhbGxlckFkZHJlc3NTdHIDCQABAgUHJG1hdGNoMAIEVW5pdAIIbm8gYWRtaW4DCQABAgUHJG1hdGNoMAIGU3RyaW5nBAF4BQckbWF0Y2gwBQF4CQACAQILTWF0Y2ggZXJyb3IDCQECIT0CBQdpc0FkbWluAghubyBhZG1pbgkAlAoCCQDMCAIJAQtTdHJpbmdFbnRyeQIFCHZhcmlhYmxlBQV2YWx1ZQUDbmlsBQR1bml0CQACAQkArAICAg9Zb3Ugbm90IGFkbWluOiAFCWFkbWluTGlzdAkAAgECEFVuc2V0IGFkbWluIGxpc3QBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleY03cRE=", "height": 2429486, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3wC8joxT1nykXc89caY6jEX3vTWQVhvPzYWu6C3otbVU Next: 8a6P6FgzRNXrJ9kubmGLYLhf8d5xFHt5fHjPF4GF2Thi Diff:
OldNewDifferences
2626 }
2727 if ((isAdmin != "no admin"))
2828 then $Tuple2([StringEntry(variable, value)], unit)
29- else throw("You not admin")
29+ else throw(("You not admin: " + adminList))
3030 }
3131 else throw("Unset admin list")
3232 }
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)
1717 if ((adminList != "unset"))
1818 then {
1919 let isAdmin = match getString(this, callerAddressStr) {
2020 case _: Unit =>
2121 "no admin"
2222 case x: String =>
2323 x
2424 case _ =>
2525 throw("Match error")
2626 }
2727 if ((isAdmin != "no admin"))
2828 then $Tuple2([StringEntry(variable, value)], unit)
29- else throw("You not admin")
29+ else throw(("You not admin: " + adminList))
3030 }
3131 else throw("Unset admin list")
3232 }
3333
3434
3535 @Verifier(tx)
3636 func verify () = match tx {
3737 case _ =>
3838 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3939 }
4040

github/deemru/w8io/169f3d6 
39.21 ms