tx · JCKxXq8PVKnVg4tiExkyNjPrejfcg76LMLNgh5vLK85C

3NBuGJbt1pYXWoAEB3yd1bBgmFZ95oBNeo6:  -0.01000000 Waves

2021.07.06 15:04 [1601722] smart account 3NBuGJbt1pYXWoAEB3yd1bBgmFZ95oBNeo6 > SELF 0.00000000 Waves

{ "type": 13, "id": "JCKxXq8PVKnVg4tiExkyNjPrejfcg76LMLNgh5vLK85C", "fee": 1000000, "feeAssetId": null, "timestamp": 1625573086310, "version": 2, "chainId": 84, "sender": "3NBuGJbt1pYXWoAEB3yd1bBgmFZ95oBNeo6", "senderPublicKey": "J9FtZpuwTo1nZceX5DMbFcETrvVKrgf7CLZPR1PQfdED", "proofs": [ "2f52xHLFfsNWqY5NQsnzNMgBvwTMDmExFuy3ucV2yPYDuAnyYHYQk36ZxMthkWUqb6VEv4bmBW8dujWGGbM1WcM9" ], "script": "base64:AAIFAAAAAAAAAFQIAhIAGgcKAmExEgFpGgkKAmEyEgNwbXQaFQoCYTMSD2N1c3RvbWVyQWRkcmVzcxoLCgJhNBIFcHJpY2UaDQoCYTUSByRtYXRjaDAaBwoCYTYSAWEAAAAAAAAAAQAAAAJhMQEAAAAIcHVyY2hhc2UAAAAABAAAAAJhMgkAAZEAAAACCAUAAAACYTEAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAmEyAAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAAJhMwkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTQEAAAAAmE1CQAEGgAAAAIFAAAABHRoaXMFAAAAAmEzAwkAAAEAAAACBQAAAAJhNQIAAAADSW50BAAAAAJhNgUAAAACYTUFAAAAAmE2AAAAAAAAAAAAAwkAAGYAAAACBQAAAAJhNAgFAAAAAmEyAAAABmFtb3VudAkAAAIAAAABAgAAAARibGFkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAgc3RhdHVzOnB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAAmEzAgAAAAljb25maXJtZWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAfcHJpY2U6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAACYTMFAAAAAmE0BQAAAANuaWwAAAAAx7eaGQ==", "height": 1601722, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hdw8qc8DFZjBee4oEFHmzi3vfQQLZANBVzjXskqggDbc Next: ApZnsPCi43DYjxzVYYis4cNeZv8dXV6Wp3jLo1DdkTFm Diff:
OldNewDifferences
1818 }
1919 if ((price > pmt.amount))
2020 then throw("blad")
21- else if ((pmt.amount > price))
22- then throw("blad2 za duzo")
23- else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
21+ else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
2422 }
2523 }
2624
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)
1313 let price = match getInteger(this, customerAddress) {
1414 case a: Int =>
1515 a
1616 case _ =>
1717 0
1818 }
1919 if ((price > pmt.amount))
2020 then throw("blad")
21- else if ((pmt.amount > price))
22- then throw("blad2 za duzo")
23- else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
21+ else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
2422 }
2523 }
2624
2725

github/deemru/w8io/026f985 
23.14 ms