tx · 8sVbaVvoKfjAdttfxp2erpYc6vp1gichDJ1EBryHUXQ8

3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk:  -0.01400000 Waves

2021.03.09 19:32 [1430380] smart account 3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk > SELF 0.00000000 Waves

{ "type": 13, "id": "8sVbaVvoKfjAdttfxp2erpYc6vp1gichDJ1EBryHUXQ8", "fee": 1400000, "feeAssetId": null, "timestamp": 1615307578795, "version": 2, "chainId": 84, "sender": "3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk", "senderPublicKey": "8rDvQxFR9tYKSwAaR4umUxBMj37GmcVY3VtWAjLyJu62", "proofs": [ "BmFHYsA5xrxNWs9TUapupnvPrtxz7zM91744Bm75B6SAzBYMVQPREjvrTfdtsbTci6bJ5w2vi8Uogztev6k8DF5" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEBAAAAAAAAAAEAAAABaQEAAAAHZ2V0VW5pdAAAAAEAAAAGdW5pdGlkBAAAAAt1bml0QXNzZXRJZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABXVuaXRfCQABpAAAAAEFAAAABnVuaXRpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAAEAAAABGNvc3QEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAVjb3N0XwUAAAALdW5pdEFzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAA3BtdAAAAAdhc3NldElkCQAAAgAAAAECAAAAFXdvcmtzIHdpdGggd2F2ZXMgb25seQMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAARjb3N0CQAAAgAAAAECAAAAGFdyb25nIHNlcnZpY2UgZmVlIGFtb3VudAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEJAAJZAAAAAQUAAAALdW5pdEFzc2V0SWQFAAAAA25pbAAAAAAcV5nO", "height": 1430380, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: bWkkKRqwv9Lof8L6Nb3vJs6hrsUV1psRSmGR6H5WVjv Next: GYrb4XkKFrrFJijYLb78HrHdHm8WhyFhVFVEfEF3ypdC Diff:
OldNewDifferences
2222 then throw("works with waves only")
2323 else if ((pmt.amount != cost))
2424 then throw("Wrong service fee amount")
25- else TransferSet([ScriptTransfer(i.caller, 1, toBytes(unitAssetId))])
25+ else TransferSet([ScriptTransfer(i.caller, 1, fromBase58String(unitAssetId))])
2626 }
2727
2828
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func getUnit (unitid) = {
88 let unitAssetId = match getString(this, ("unit_" + toString(unitid))) {
99 case a: String =>
1010 a
1111 case _ =>
1212 ""
1313 }
1414 let cost = match getInteger(this, ("cost_" + unitAssetId)) {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020 let pmt = extract(i.payment)
2121 if (isDefined(pmt.assetId))
2222 then throw("works with waves only")
2323 else if ((pmt.amount != cost))
2424 then throw("Wrong service fee amount")
25- else TransferSet([ScriptTransfer(i.caller, 1, toBytes(unitAssetId))])
25+ else TransferSet([ScriptTransfer(i.caller, 1, fromBase58String(unitAssetId))])
2626 }
2727
2828

github/deemru/w8io/169f3d6 
60.62 ms