tx · FmecuP9ZqqMjdSLKN35pg7dUCgY8P7YV1TLzoSKe2R2W

3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o:  -0.01000000 Waves

2021.07.06 13:10 [1601608] smart account 3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o > SELF 0.00000000 Waves

{ "type": 13, "id": "FmecuP9ZqqMjdSLKN35pg7dUCgY8P7YV1TLzoSKe2R2W", "fee": 1000000, "feeAssetId": null, "timestamp": 1625566234404, "version": 2, "chainId": 84, "sender": "3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o", "senderPublicKey": "Fm5T6aisXqgF7W3uEcDftbjgAc73pLjgSLfrd8kVQPp", "proofs": [ "Uc7rqs4NumtvVU9rbKZTCKrXGx48WbNRZDuxC9xuAzmgkDRbXNpzB64sKhGPqTtybXEkTXXApua1YzTpUKenxo8" ], "script": "base64:AAIFAAAAAAAAAFQIAhIAGgcKAmExEgFpGgkKAmEyEgNwbXQaFQoCYTMSD2N1c3RvbWVyQWRkcmVzcxoLCgJhNBIFcHJpY2UaDQoCYTUSByRtYXRjaDAaBwoCYTYSAWEAAAAAAAAAAQAAAAJhMQEAAAAIcHVyY2hhc2UAAAAABAAAAAJhMgkAAZEAAAACCAUAAAACYTEAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAmEyAAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAAJhMwkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTQEAAAAAmE1CQAEGgAAAAIFAAAABHRoaXMCAAAAClhEX0NPU19UQU0DCQAAAQAAAAIFAAAAAmE1AgAAAANJbnQEAAAAAmE2BQAAAAJhNQUAAAACYTYAAAAAAAAAAAADCQAAZgAAAAIFAAAAAmE0CAUAAAACYTIAAAAGYW1vdW50CQAAAgAAAAECAAAABGJsYWQDCQAAZgAAAAIIBQAAAAJhMgAAAAZhbW91bnQFAAAAAmE0CQAAAgAAAAECAAAADWJsYWQyIHphIGR1em8JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAACBzdGF0dXM6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAACYTMCAAAACWNvbmZpcm1lZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAB9wcmljZTpwdXJjaGFzZV9pdGVtX0FfY3VzdG9tZXJfBQAAAAJhMwUAAAACYTQFAAAAA25pbAAAAAB64uYs", "height": 1601608, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: yPN1y93tmpQV9NR62Y2UZPrZA1JEXT8MGrRrLD9mquZ Next: 7N25UwUZB5T2AzL9NYCLGzbaxzFH9sndfwvb85dVMnCP Diff:
OldNewDifferences
1010 then throw("works with waves only")
1111 else {
1212 let customerAddress = toBase58String(i.caller.bytes)
13- let price = match getInteger(this, customerAddress) {
13+ let price = match getInteger(this, "XD_COS_TAM") {
1414 case a: Int =>
1515 a
1616 case _ =>
2020 then throw("blad")
2121 else if ((pmt.amount > price))
2222 then throw("blad2 za duzo")
23- else $Tuple2([StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)], unit)
23+ else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
2424 }
2525 }
2626
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func purchase () = {
88 let pmt = i.payments[0]
99 if (isDefined(pmt.assetId))
1010 then throw("works with waves only")
1111 else {
1212 let customerAddress = toBase58String(i.caller.bytes)
13- let price = match getInteger(this, customerAddress) {
13+ let price = match getInteger(this, "XD_COS_TAM") {
1414 case a: Int =>
1515 a
1616 case _ =>
1717 0
1818 }
1919 if ((price > pmt.amount))
2020 then throw("blad")
2121 else if ((pmt.amount > price))
2222 then throw("blad2 za duzo")
23- else $Tuple2([StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)], unit)
23+ else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
2424 }
2525 }
2626
2727

github/deemru/w8io/026f985 
19.94 ms