tx · BrVxb3MT9ApEVBfzpwqPGGAskoorr6v8EHqFGMbcjQuX
3NBaYzWT2odsyrZ2u1ghsrHinBm4xFRAgLX: -0.01400000 Waves
2019.07.02 14:48 [567739] smart account 3NBaYzWT2odsyrZ2u1ghsrHinBm4xFRAgLX > SELF 0.00000000 Waves
{
"type": 13,
"id": "BrVxb3MT9ApEVBfzpwqPGGAskoorr6v8EHqFGMbcjQuX",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1562068119744,
"version": 1,
"sender": "3NBaYzWT2odsyrZ2u1ghsrHinBm4xFRAgLX",
"senderPublicKey": "HBqhfdFASRQ5eBBpu2y6c6KKi1az6bMx8v1JxX4iW1Q8",
"proofs": [
"vgB1ibuZzU32hqZuciJmkUAaFV2B1KFbBGCcKnzUJPQnDfdLnPENPFWb5pwTaa1RAcnK66eNmTkM4vqnZHCwFo4"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAApyZXRyYW5zbWl0AAAABAAAAAdhZGRyZXNzAAAABmFtb3VudAAAAARkYXRhAAAABnJlYWxseQQAAAADcGF5CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQEAAAAAnRvCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAB2FkZHJlc3MEAAAABWNoZWNrCQAB9wAAAAEJAAGbAAAAAQUAAAAHYWRkcmVzcwMJAQAAAAEhAAAAAQUAAAAGcmVhbGx5CQAAAgAAAAECAAAADnJlYWxseSA9IGZhbHNlAwkBAAAAAiE9AAAAAgUAAAAEZGF0YQUAAAAFY2hlY2sJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAJYAAAAAQUAAAAEZGF0YQIAAAAEICE9IAkAAlgAAAABBQAAAAVjaGVjawIAAAABKAUAAAAHYWRkcmVzcwIAAAABKQMDCQAAZgAAAAIFAAAABmFtb3VudAgFAAAAA3BheQAAAAZhbW91bnQJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwYXkAAAAHYXNzZXRJZAcJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAJYAAAAAQUAAAAEZGF0YQIAAAAEICE9IAkAAlgAAAABBQAAAAVjaGVjawIAAAABKAUAAAAHYWRkcmVzcwIAAAABKQkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAJ0bwUAAAAGYW1vdW50BQAAAAR1bml0BQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwkBAAAAASEAAAABCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABCQACXAAAAAEIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMGTjoyvg==",
"chainId": 84,
"height": 567739,
"spentComplexity": 0
}
View: original | compacted
Prev: Dx5nDZT8vuDCyrtDoKDUvhJuHg4qAd3Y4LxrawkeqPeY
Next: 7L37sgWXrz7Jb4YcGFiB7oYBMS2MCPNub3bWsJUdAyHL
Diff:
Old | New | | Differences |
---|
12 | 12 | | then throw("really = false") |
---|
13 | 13 | | else if ((data != check)) |
---|
14 | 14 | | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
15 | | - | else if ((amount > pay.amount)) |
---|
| 15 | + | else if (if ((amount > pay.amount)) |
---|
| 16 | + | then !(isDefined(pay.assetId)) |
---|
| 17 | + | else false) |
---|
16 | 18 | | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
17 | 19 | | else TransferSet([ScriptTransfer(to, amount, unit)]) |
---|
18 | 20 | | } |
---|
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(i) |
---|
7 | 7 | | func retransmit (address,amount,data,really) = { |
---|
8 | 8 | | let pay = extract(i.payment) |
---|
9 | 9 | | let to = addressFromStringValue(address) |
---|
10 | 10 | | let check = sha256(toBytes(address)) |
---|
11 | 11 | | if (!(really)) |
---|
12 | 12 | | then throw("really = false") |
---|
13 | 13 | | else if ((data != check)) |
---|
14 | 14 | | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
15 | | - | else if ((amount > pay.amount)) |
---|
| 15 | + | else if (if ((amount > pay.amount)) |
---|
| 16 | + | then !(isDefined(pay.assetId)) |
---|
| 17 | + | else false) |
---|
16 | 18 | | then throw((((((toBase58String(data) + " != ") + toBase58String(check)) + "(") + address) + ")")) |
---|
17 | 19 | | else TransferSet([ScriptTransfer(to, amount, unit)]) |
---|
18 | 20 | | } |
---|
19 | 21 | | |
---|
20 | 22 | | |
---|
21 | 23 | | @Verifier(tx) |
---|
22 | 24 | | func verify () = if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))) |
---|
23 | 25 | | then throw(toBase16String(tx.bodyBytes)) |
---|
24 | 26 | | else true |
---|
25 | 27 | | |
---|