tx · GA39hHqLgsuD9wr4Pg8E9ks3mxuZDQiwzMcfGAjHsgzp
3Mze7XxHJtXw48uyWhjTJgMLcEzNBmi9tS9: -0.01400000 Waves
2019.07.31 19:04 [610484] smart account 3Mze7XxHJtXw48uyWhjTJgMLcEzNBmi9tS9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "GA39hHqLgsuD9wr4Pg8E9ks3mxuZDQiwzMcfGAjHsgzp",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564589044020,
"version": 1,
"sender": "3Mze7XxHJtXw48uyWhjTJgMLcEzNBmi9tS9",
"senderPublicKey": "BZri78A6CXpGPmAHZNwqQXoNfWamwRZiuaBas3VdDKZp",
"proofs": [
"ik9yQVD24eYdaNXX63UQHwQ3rcQVuf5DJFxVssWQfGKdTZ8F3L813eBpKacejpR76TDodS8uedqKaSN2UXzdNNU"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAhwdXJjaGFzZQAAAAEAAAALUHJvZHVjdG5hbWUEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACFDYW4gdXNlIG9ubHkgV0FWRVMgYXQgdGhlIG1vbWVudC4EAAAAD2N1c3RvbWVyQWRkcmVzcwkAAlwAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAApjdXJyZW50S2V5CQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXByaWNlBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACmN1cnJlbnRLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMJAABmAAAAAgUAAAAFcHJpY2UIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAPUFtb3VudCBjYW5ub3QgYmUgbGVzcyB0aGFuIGl0ZW0gcHJpY2UuIFlvdSBzcGVjaWZpZWQgYW1vdW50OiAJAAGkAAAAAQgFAAAAA3BtdAAAAAZhbW91bnQCAAAADWJ1dCBwcmljZSBpcyAJAAGkAAAAAQUAAAAFcHJpY2UDCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAVwcmljZQkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAEBBbW91bnQgY2Fubm90IGJlIGdyZWF0ZXIgdGhhbiBpdGVtIHByaWNlLiBZb3Ugc3BlY2lmaWVkIGFtb3VudDogCQABpAAAAAEIBQAAAANwbXQAAAAGYW1vdW50AgAAAA1idXQgcHJpY2UgaXMgCQABpAAAAAEFAAAABXByaWNlCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAdzdGF0dXM6BQAAAApjdXJyZW50S2V5AgAAAAFfBQAAAA9jdXN0b21lckFkZHJlc3MCAAAACWNvbmZpcm1lZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAGcHJpY2U6BQAAAApjdXJyZW50S2V5AgAAAAFfBQAAAA9jdXN0b21lckFkZHJlc3MFAAAABXByaWNlBQAAAANuaWwAAAAAvdhRwA==",
"chainId": 84,
"height": 610484,
"spentComplexity": 0
}
View: original | compacted
Prev: 5fPrpUKY12GboKYYecgLrMzKp2dtJ9UW73FrhEnmYwrE
Next: 47tKTeY7HZEtJ98hBVs7fsFn1JKL8MzmttU7v8x7EEXx
Diff:
Old | New | | Differences |
---|
23 | 23 | | if ((f > c.amount)) |
---|
24 | 24 | | then throw(((("Amount cannot be less than item price. You specified amount: " + toString(c.amount)) + "but price is ") + toString(f))) |
---|
25 | 25 | | else if ((c.amount > f)) |
---|
26 | | - | then throw(("Amount cannot be greater than item price. You specified amount: " + toString(c.amount))) |
---|
| 26 | + | then throw(((("Amount cannot be greater than item price. You specified amount: " + toString(c.amount)) + "but price is ") + toString(f))) |
---|
27 | 27 | | else WriteSet([DataEntry(((("status:" + e) + "_") + d), "confirmed"), DataEntry(((("price:" + e) + "_") + d), f)]) |
---|
28 | 28 | | } |
---|
29 | 29 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func purchase (b) = { |
---|
8 | 8 | | let c = extract(a.payment) |
---|
9 | 9 | | if (isDefined(c.assetId)) |
---|
10 | 10 | | then throw("Can use only WAVES at the moment.") |
---|
11 | 11 | | else { |
---|
12 | 12 | | let d = toBase16String(a.caller.bytes) |
---|
13 | 13 | | let e = toBase58String(a.caller.bytes) |
---|
14 | 14 | | let f = { |
---|
15 | 15 | | let g = getInteger(this, e) |
---|
16 | 16 | | if ($isInstanceOf(g, "Int")) |
---|
17 | 17 | | then { |
---|
18 | 18 | | let h = g |
---|
19 | 19 | | h |
---|
20 | 20 | | } |
---|
21 | 21 | | else 0 |
---|
22 | 22 | | } |
---|
23 | 23 | | if ((f > c.amount)) |
---|
24 | 24 | | then throw(((("Amount cannot be less than item price. You specified amount: " + toString(c.amount)) + "but price is ") + toString(f))) |
---|
25 | 25 | | else if ((c.amount > f)) |
---|
26 | | - | then throw(("Amount cannot be greater than item price. You specified amount: " + toString(c.amount))) |
---|
| 26 | + | then throw(((("Amount cannot be greater than item price. You specified amount: " + toString(c.amount)) + "but price is ") + toString(f))) |
---|
27 | 27 | | else WriteSet([DataEntry(((("status:" + e) + "_") + d), "confirmed"), DataEntry(((("price:" + e) + "_") + d), f)]) |
---|
28 | 28 | | } |
---|
29 | 29 | | } |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|