tx · 9sAGUFsG4pQNaqeeBdvESC79WCY8sx83x43Tm6VdBJvR

3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk:  -0.14000000 Waves

2021.02.04 19:17 [1383662] smart account 3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk > SELF 0.00000000 Waves

{ "type": 13, "id": "9sAGUFsG4pQNaqeeBdvESC79WCY8sx83x43Tm6VdBJvR", "fee": 14000000, "feeAssetId": null, "timestamp": 1612455471535, "version": 2, "chainId": 84, "sender": "3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk", "senderPublicKey": "8rDvQxFR9tYKSwAaR4umUxBMj37GmcVY3VtWAjLyJu62", "proofs": [ "4bnK2dB8fMfp3qZSh4xzNE1ehqX8sXn2g5bz6zTh3H4QVdDbN2oBwMR5ci2Qixp55qykPXVCPt9rEzMS4jJ4CyTv" ], "script": "base64:AAIEAAAAAAAAAAcIAhIDCgEBAAAAAAAAAAEAAAABaQEAAAAHZ2V0VW5pdAAAAAEAAAAGdW5pdGlkBAAAAAt1bml0QXNzZXRJZAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzCQABLAAAAAICAAAABHVuaXQJAAGkAAAAAQUAAAAGdW5pdGlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAEY29zdAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABWNvc3RfBQAAAAt1bml0QXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAANwbXQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAcQXR0YWNoZWQgcGF5bWVudCBpcyByZXF1aXJlZAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABGNvc3QJAAACAAAAAQIAAAAYV3Jvbmcgc2VydmljZSBmZWUgYW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAEdW5pdAUAAAADbmlsAAAAAOpKCxA=", "height": 1383662, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: A1mqznGXM8Dz47EgGgQvkYr5NV6bfQLcczwCK7uKmppE Next: 2KAELd8c8ScHWQ85kVjx1g9M6JtxvoaiMK7QKG5jgAsX Diff:
OldNewDifferences
3030 then throw("works with waves only")
3131 else if ((g.amount != f))
3232 then throw("Wrong service fee amount")
33- else [ScriptTransfer(a.caller, 1, toBytes(c))]
33+ else [ScriptTransfer(a.caller, 1, unit)]
3434 }
3535
3636
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func getUnit (b) = {
88 let c = {
99 let d = getString(this, ("unit" + toString(b)))
1010 if ($isInstanceOf(d, "String"))
1111 then {
1212 let e = d
1313 e
1414 }
1515 else ""
1616 }
1717 let f = {
1818 let d = getInteger(this, ("cost_" + c))
1919 if ($isInstanceOf(d, "Int"))
2020 then {
2121 let e = d
2222 e
2323 }
2424 else 0
2525 }
2626 let g = if ((size(a.payments) == 1))
2727 then a.payments[0]
2828 else throw("Attached payment is required")
2929 if (isDefined(g.assetId))
3030 then throw("works with waves only")
3131 else if ((g.amount != f))
3232 then throw("Wrong service fee amount")
33- else [ScriptTransfer(a.caller, 1, toBytes(c))]
33+ else [ScriptTransfer(a.caller, 1, unit)]
3434 }
3535
3636

github/deemru/w8io/169f3d6 
30.23 ms