tx · 93vym5QArCvNXQpATsNikD8Mp6urYaKwiR7MPBKJp45d
3NAj7owPjfmLoE3odgXC6cXfB1QzEhnpBtt: -0.01400000 Waves
2020.11.17 18:51 [1269574] smart account 3NAj7owPjfmLoE3odgXC6cXfB1QzEhnpBtt > SELF 0.00000000 Waves
{
"type": 13,
"id": "93vym5QArCvNXQpATsNikD8Mp6urYaKwiR7MPBKJp45d",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1605628369691,
"version": 2,
"chainId": 84,
"sender": "3NAj7owPjfmLoE3odgXC6cXfB1QzEhnpBtt",
"senderPublicKey": "iRqJrgq4rS2ndNGFJoZtKcoTfskkxr3zfTesPWqtKzp",
"proofs": [
"5eBE6DnKDi9H1b5nsjMfvEZPSnpUm5ig4uQQjHHn1ynHw5nqDTMwtbsFRsQPc3fJfEPekwRbYuFgqGJ4WfchMEWT"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAAAwYJAAACAAAAAQIAAAAFSGVsbG8JAAACAAAAAQIAAAAFV2l0YW0AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABkc+nFA=",
"height": 1269574,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EmGtU2LRskWcasWYwuwsPNiLh2gdr7CvW53BbhPfr7t4
Next: Bf7xxNkvNfeqbhkFTMs7wzeHAbMdMxvHM4QWZ5vsGEjM
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func purchase () = { |
---|
8 | | - | let b = value(a.payments[0]) |
---|
9 | | - | if (isDefined(b.assetId)) |
---|
10 | | - | then throw("Only Waves are accepted") |
---|
11 | | - | else { |
---|
12 | | - | let c = toBase58String(a.caller.bytes) |
---|
13 | | - | let d = { |
---|
14 | | - | let e = getInteger(this, "item_A_coupon_price") |
---|
15 | | - | if ($isInstanceOf(e, "Int")) |
---|
16 | | - | then { |
---|
17 | | - | let f = e |
---|
18 | | - | f |
---|
19 | | - | } |
---|
20 | | - | else 0 |
---|
21 | | - | } |
---|
22 | | - | if ((b.amount == 0)) |
---|
23 | | - | then throw("Purchase amount is 0") |
---|
24 | | - | else if ((d > b.amount)) |
---|
25 | | - | then throw("Purchase amount is too low") |
---|
26 | | - | else if ((b.amount > d)) |
---|
27 | | - | then throw("Purchase amount is too high") |
---|
28 | | - | else [StringEntry(("status:purchase_item_A_customer" + c), "true"), IntegerEntry(("price:purchase_item_A_customer" + c), d)] |
---|
29 | | - | } |
---|
30 | | - | } |
---|
| 7 | + | func purchase () = if (true) |
---|
| 8 | + | then throw("Hello") |
---|
| 9 | + | else throw("Witam") |
---|
31 | 10 | | |
---|
32 | 11 | | |
---|
33 | | - | @Verifier(g) |
---|
34 | | - | func h () = true |
---|
| 12 | + | @Verifier(b) |
---|
| 13 | + | func c () = true |
---|
35 | 14 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func purchase () = { |
---|
8 | | - | let b = value(a.payments[0]) |
---|
9 | | - | if (isDefined(b.assetId)) |
---|
10 | | - | then throw("Only Waves are accepted") |
---|
11 | | - | else { |
---|
12 | | - | let c = toBase58String(a.caller.bytes) |
---|
13 | | - | let d = { |
---|
14 | | - | let e = getInteger(this, "item_A_coupon_price") |
---|
15 | | - | if ($isInstanceOf(e, "Int")) |
---|
16 | | - | then { |
---|
17 | | - | let f = e |
---|
18 | | - | f |
---|
19 | | - | } |
---|
20 | | - | else 0 |
---|
21 | | - | } |
---|
22 | | - | if ((b.amount == 0)) |
---|
23 | | - | then throw("Purchase amount is 0") |
---|
24 | | - | else if ((d > b.amount)) |
---|
25 | | - | then throw("Purchase amount is too low") |
---|
26 | | - | else if ((b.amount > d)) |
---|
27 | | - | then throw("Purchase amount is too high") |
---|
28 | | - | else [StringEntry(("status:purchase_item_A_customer" + c), "true"), IntegerEntry(("price:purchase_item_A_customer" + c), d)] |
---|
29 | | - | } |
---|
30 | | - | } |
---|
| 7 | + | func purchase () = if (true) |
---|
| 8 | + | then throw("Hello") |
---|
| 9 | + | else throw("Witam") |
---|
31 | 10 | | |
---|
32 | 11 | | |
---|
33 | | - | @Verifier(g) |
---|
34 | | - | func h () = true |
---|
| 12 | + | @Verifier(b) |
---|
| 13 | + | func c () = true |
---|
35 | 14 | | |
---|