tx · yPN1y93tmpQV9NR62Y2UZPrZA1JEXT8MGrRrLD9mquZ

3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o:  -0.01000000 Waves

2021.07.06 13:05 [1601601] smart account 3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o > SELF 0.00000000 Waves

{ "type": 13, "id": "yPN1y93tmpQV9NR62Y2UZPrZA1JEXT8MGrRrLD9mquZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1625565920993, "version": 2, "chainId": 84, "sender": "3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o", "senderPublicKey": "Fm5T6aisXqgF7W3uEcDftbjgAc73pLjgSLfrd8kVQPp", "proofs": [ "3S741YYj31UaTL47ooWRzr581McSoWZnW9bu1CfjqRtv2AJZDQPvxckCiJpcYQfyUYK6SZWnJLe5dGjL1yT4YYLF" ], "script": "base64:AAIFAAAAAAAAAFQIAhIAGgcKAmExEgFpGgkKAmEyEgNwbXQaFQoCYTMSD2N1c3RvbWVyQWRkcmVzcxoLCgJhNBIFcHJpY2UaDQoCYTUSByRtYXRjaDAaBwoCYTYSAWEAAAAAAAAAAQAAAAJhMQEAAAAIcHVyY2hhc2UAAAAABAAAAAJhMgkAAZEAAAACCAUAAAACYTEAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAmEyAAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAAJhMwkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTQEAAAAAmE1CQAEGgAAAAIFAAAABHRoaXMFAAAAAmEzAwkAAAEAAAACBQAAAAJhNQIAAAADSW50BAAAAAJhNgUAAAACYTUFAAAAAmE2AAAAAAAAAAAAAwkAAGYAAAACBQAAAAJhNAgFAAAAAmEyAAAABmFtb3VudAkAAAIAAAABAgAAAARibGFkAwkAAGYAAAACCAUAAAACYTIAAAAGYW1vdW50BQAAAAJhNAkAAAIAAAABAgAAAA1ibGFkMiB6YSBkdXpvCQAFFAAAAAIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAACBzdGF0dXM6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAACYTMCAAAACWNvbmZpcm1lZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAB9wcmljZTpwdXJjaGFzZV9pdGVtX0FfY3VzdG9tZXJfBQAAAAJhMwUAAAACYTQFAAAAA25pbAUAAAAEdW5pdAAAAAB7vGyo", "height": 1601601, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4tUGW2AbY7KiQg5uPNi7Jskg4MrMXKk6YCTvYSbECZVp Next: FmecuP9ZqqMjdSLKN35pg7dUCgY8P7YV1TLzoSKe2R2W Diff:
OldNewDifferences
2323 then throw("blad")
2424 else if ((b.amount > d))
2525 then throw("blad2 za duzo")
26- else [StringEntry(("status:purchase_item_A_customer_" + c), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + c), d)]
26+ else $Tuple2([StringEntry(("status:purchase_item_A_customer_" + c), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + c), d)], unit)
2727 }
2828 }
2929
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func purchase () = {
88 let b = a.payments[0]
99 if (isDefined(b.assetId))
1010 then throw("works with waves only")
1111 else {
1212 let c = toBase58String(a.caller.bytes)
1313 let d = {
1414 let e = getInteger(this, c)
1515 if ($isInstanceOf(e, "Int"))
1616 then {
1717 let f = e
1818 f
1919 }
2020 else 0
2121 }
2222 if ((d > b.amount))
2323 then throw("blad")
2424 else if ((b.amount > d))
2525 then throw("blad2 za duzo")
26- else [StringEntry(("status:purchase_item_A_customer_" + c), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + c), d)]
26+ else $Tuple2([StringEntry(("status:purchase_item_A_customer_" + c), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + c), d)], unit)
2727 }
2828 }
2929
3030

github/deemru/w8io/026f985 
20.31 ms