tx · E8JFKDuFeqW7pXUU9zT2ZxyGoPAUYSkpnF7tUfxVaP66

3MzFjVphaDKp1oZjd5KmCYou3wCzCzTmEFe:  -0.00100000 Waves

2022.09.18 22:39 [2234983] smart account 3MzFjVphaDKp1oZjd5KmCYou3wCzCzTmEFe > SELF 0.00000000 Waves

{ "type": 13, "id": "E8JFKDuFeqW7pXUU9zT2ZxyGoPAUYSkpnF7tUfxVaP66", "fee": 100000, "feeAssetId": null, "timestamp": 1663530004668, "version": 2, "chainId": 84, "sender": "3MzFjVphaDKp1oZjd5KmCYou3wCzCzTmEFe", "senderPublicKey": "FFVf3kC6HkjRMmf8W6Zr2bNKhJ5EN5W1vG44GbgvHd9Z", "proofs": [ "4ycuWFGAqMXq8yLDPZ6MSNJVMxZWA59uKSbeG7qEjqEcaVqL9d9LSyojC73Gdigb6v322LH2vGgYp35xK4fsh9TY" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAgY2FuIHVzZSBXQVZFUyBvbmx5IGF0IHRoZSBtb21lbnQEAAAAD2N1c3RvbWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwcmljZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAABNJdGVtX0FfY291cG9uX3ByaWNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAADCQAAZgAAAAIFAAAABXByaWNlCAUAAAADcG10AAAABmFtb3VudAkAAAIAAAABAgAAACRQdXJjaGFzZSBjYW5ub3QgYmUgbG93ZXIgdGhhbiBwcmljZSADCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAVwcmljZQkAAAIAAAABAgAAACVQdXJjaGFzZSBjYW5ub3QgYmUgaGlnaGVyIHRoYW4gcHJpY2UgCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAIXN0YXR1czogcHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAAPY3VzdG9tZXJBZGRyZXNzAgAAAAljb25maXJtZWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAgcHJpY2U6IHB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAAFcHJpY2UFAAAAA25pbAAAAACzXZ9n", "height": 2234983, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9TfShDSzDmUQTcJwaXsueTnXaTmFAafgsLVziag7TuPv Next: GoGfNK3BFnhYM8UdNp4ZAeCMkvxrgzqskiDTzTCCoLcJ Diff:
OldNewDifferences
77 func purchase () = {
88 let b = extract(a.payment)
99 if (isDefined(b.assetId))
10- then throw("Can use WAVES only")
10+ then throw("can use WAVES only at the moment")
1111 else {
1212 let c = toBase58String(a.caller.bytes)
1313 let d = {
14- let e = getInteger(this, "Item_A_Coupon_Price")
14+ let e = getInteger(this, "Item_A_coupon_price")
1515 if ($isInstanceOf(e, "Int"))
1616 then {
1717 let f = e
2020 else 0
2121 }
2222 if ((d > b.amount))
23- then throw("Purchase cannot be less than price ")
23+ then throw("Purchase cannot be lower than price ")
2424 else if ((b.amount > d))
25- then throw("Purchase cannot be more than price ")
26- else WriteSet([DataEntry(("status: purchase_itemA_customer_" + c), "confirmed"), DataEntry(("price: purchase_itemA_customer_" + c), d)])
25+ then throw("Purchase cannot be higher than price ")
26+ else WriteSet([DataEntry(("status: purchase_item_A_customer_" + c), "confirmed"), DataEntry(("price: purchase_item_A_customer_" + c), d)])
2727 }
2828 }
2929
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func purchase () = {
88 let b = extract(a.payment)
99 if (isDefined(b.assetId))
10- then throw("Can use WAVES only")
10+ then throw("can use WAVES only at the moment")
1111 else {
1212 let c = toBase58String(a.caller.bytes)
1313 let d = {
14- let e = getInteger(this, "Item_A_Coupon_Price")
14+ let e = getInteger(this, "Item_A_coupon_price")
1515 if ($isInstanceOf(e, "Int"))
1616 then {
1717 let f = e
1818 f
1919 }
2020 else 0
2121 }
2222 if ((d > b.amount))
23- then throw("Purchase cannot be less than price ")
23+ then throw("Purchase cannot be lower than price ")
2424 else if ((b.amount > d))
25- then throw("Purchase cannot be more than price ")
26- else WriteSet([DataEntry(("status: purchase_itemA_customer_" + c), "confirmed"), DataEntry(("price: purchase_itemA_customer_" + c), d)])
25+ then throw("Purchase cannot be higher than price ")
26+ else WriteSet([DataEntry(("status: purchase_item_A_customer_" + c), "confirmed"), DataEntry(("price: purchase_item_A_customer_" + c), d)])
2727 }
2828 }
2929
3030

github/deemru/w8io/169f3d6 
26.18 ms