tx · 4tUGW2AbY7KiQg5uPNi7Jskg4MrMXKk6YCTvYSbECZVp
3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o: -0.01000000 Waves
2021.07.06 13:01 [1601599] smart account 3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o > SELF 0.00000000 Waves
{
"type": 13,
"id": "4tUGW2AbY7KiQg5uPNi7Jskg4MrMXKk6YCTvYSbECZVp",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1625565775599,
"version": 2,
"chainId": 84,
"sender": "3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o",
"senderPublicKey": "Fm5T6aisXqgF7W3uEcDftbjgAc73pLjgSLfrd8kVQPp",
"proofs": [
"2uLzR79yhA4ac1T4bUkHeayrc1yKRZeSZmDiR5NmbdDE5xx6TY5w8Ag68phDA51uNYiVsigABzAKbd9xuSJ3VjMw"
],
"script": "base64:AAIFAAAAAAAAAFQIAhIAGgcKAmExEgFpGgkKAmEyEgNwbXQaFQoCYTMSD2N1c3RvbWVyQWRkcmVzcxoLCgJhNBIFcHJpY2UaDQoCYTUSByRtYXRjaDAaBwoCYTYSAWEAAAAAAAAAAQAAAAJhMQEAAAAIcHVyY2hhc2UAAAAABAAAAAJhMgkAAZEAAAACCAUAAAACYTEAAAAIcGF5bWVudHMAAAAAAAAAAAADCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAmEyAAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAAJhMwkAAlgAAAABCAgFAAAAAmExAAAABmNhbGxlcgAAAAVieXRlcwQAAAACYTQEAAAAAmE1CQAEGgAAAAIFAAAABHRoaXMFAAAAAmEzAwkAAAEAAAACBQAAAAJhNQIAAAADSW50BAAAAAJhNgUAAAACYTUFAAAAAmE2AAAAAAAAAAAAAwkAAGYAAAACBQAAAAJhNAgFAAAAAmEyAAAABmFtb3VudAkAAAIAAAABAgAAAARibGFkAwkAAGYAAAACCAUAAAACYTIAAAAGYW1vdW50BQAAAAJhNAkAAAIAAAABAgAAAA1ibGFkMiB6YSBkdXpvCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgIAAAAgc3RhdHVzOnB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAAmEzAgAAAAljb25maXJtZWQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAfcHJpY2U6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAACYTMFAAAAAmE0BQAAAANuaWwAAAAAJnbLeg==",
"height": 1601599,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HpVGg2w1KqtKn1KSbd43HC7gFChtBJ5DpbZLdDGUZhLr
Next: yPN1y93tmpQV9NR62Y2UZPrZA1JEXT8MGrRrLD9mquZ
Diff:
Old | New | | Differences |
---|
22 | 22 | | if ((d > b.amount)) |
---|
23 | 23 | | then throw("blad") |
---|
24 | 24 | | else if ((b.amount > d)) |
---|
25 | | - | then throw("blad2") |
---|
| 25 | + | then throw("blad2 za duzo") |
---|
26 | 26 | | else [StringEntry(("status:purchase_item_A_customer_" + c), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + c), d)] |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func purchase () = { |
---|
8 | 8 | | let b = a.payments[0] |
---|
9 | 9 | | if (isDefined(b.assetId)) |
---|
10 | 10 | | then throw("works with waves only") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let c = toBase58String(a.caller.bytes) |
---|
13 | 13 | | let d = { |
---|
14 | 14 | | let e = getInteger(this, c) |
---|
15 | 15 | | if ($isInstanceOf(e, "Int")) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let f = e |
---|
18 | 18 | | f |
---|
19 | 19 | | } |
---|
20 | 20 | | else 0 |
---|
21 | 21 | | } |
---|
22 | 22 | | if ((d > b.amount)) |
---|
23 | 23 | | then throw("blad") |
---|
24 | 24 | | else if ((b.amount > d)) |
---|
25 | | - | then throw("blad2") |
---|
| 25 | + | then throw("blad2 za duzo") |
---|
26 | 26 | | else [StringEntry(("status:purchase_item_A_customer_" + c), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + c), d)] |
---|
27 | 27 | | } |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|