tx · 4DoVwma7tCR5zNAFmhhh9q64aH8wsMeLvKCmVvQe6pYP

3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk:  -0.01400000 Waves

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

{ "type": 13, "id": "4DoVwma7tCR5zNAFmhhh9q64aH8wsMeLvKCmVvQe6pYP", "fee": 1400000, "feeAssetId": null, "timestamp": 1615306830405, "version": 2, "chainId": 84, "sender": "3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk", "senderPublicKey": "8rDvQxFR9tYKSwAaR4umUxBMj37GmcVY3VtWAjLyJu62", "proofs": [ "4sYfMs7syrXTvaj95Lpx62exgPjURM8K2pQ69tAz49EtsdmSHgLubZjTxHYCPgtYYxd1iWbJcQA3Th25dr6hdbnJ" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAAAAAAAgAAAAFpAQAAAAdnZXRVbml0AAAAAQAAAAZ1bml0aWQEAAAAC3VuaXRBc3NldElkBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAFdW5pdF8JAAGkAAAAAQUAAAAGdW5pdGlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAAQAAAAEY29zdAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAABWNvc3RfBQAAAAt1bml0QXNzZXRJZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5AwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABGNvc3QJAAACAAAAAQIAAAAYV3Jvbmcgc2VydmljZSBmZWUgYW1vdW50CQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAAAAAAAQUAAAAEdW5pdAUAAAADbmlsAAAAAWkBAAAACnNldFRleHREZWYAAAAACQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAARkZW1vAAAAAAAAAAAMBQAAAANuaWwAAAAAhQHMaQ==", "height": 1430368, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4tYTW9tzLBDmEczkwXP82ajHePxBst5Jg9A97xVYcfY1 Next: bWkkKRqwv9Lof8L6Nb3vJs6hrsUV1psRSmGR6H5WVjv Diff:
OldNewDifferences
55
66 @Callable(i)
77 func getUnit (unitid) = {
8- let unitAssetId = match getString(this, ("unit" + toString(unitid))) {
8+ let unitAssetId = match getString(this, ("unit_" + toString(unitid))) {
99 case a: String =>
1010 a
1111 case _ =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func getUnit (unitid) = {
8- let unitAssetId = match getString(this, ("unit" + toString(unitid))) {
8+ 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")
2525 else TransferSet([ScriptTransfer(i.caller, 1, unit)])
2626 }
2727
2828
2929
3030 @Callable(i)
3131 func setTextDef () = WriteSet([DataEntry("demo", 12)])
3232
3333

github/deemru/w8io/169f3d6 
46.16 ms