tx · 2hzRDe8Hyr6aFhHbm49Du1gQZ9z8AKBow8UBppL9AAgK
3N7wisr78en3DHbwkc35dav7MexLnSvu73h: -0.01400000 Waves
2019.01.13 18:12 [448319] smart account 3N7wisr78en3DHbwkc35dav7MexLnSvu73h > SELF 0.00000000 Waves
{
"type": 13,
"id": "2hzRDe8Hyr6aFhHbm49Du1gQZ9z8AKBow8UBppL9AAgK",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1547392397190,
"version": 1,
"sender": "3N7wisr78en3DHbwkc35dav7MexLnSvu73h",
"senderPublicKey": "9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo",
"proofs": [
"1111111111111111111111111111111111111111111111111111111111111111"
],
"script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACG15UHViS2V5AQAAACB6w55XBswD1fMLfwDmMHo8i3LZ7d+/joJlq4b82fNOAAQAAAAJbXlBZGRyZXNzCQEAAAAHZXh0cmFjdAAAAAEJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNON3dpc3I3OGVuM0RIYndrYzM1ZGF2N01leExuU3Z1NzNoBAAAABByZWNpcGllbnRBZGRyZXNzCQEAAAAHZXh0cmFjdAAAAAEJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNdEJxRXRrRjhjWWtOSnY4NVFVUzR3dGVOajQ4Wk1BbnQ5BAAAAAtteUFkZHJlc3NUeAgFAAAAAXQAAAAGc2VuZGVyBAAAABJyZWNpcGllbnRBZGRyZXNzVHgJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaXBpZW50BAAAAAJBQwkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAhteVB1YktleQMDBQAAAAJBQwkAAAAAAAACBQAAAAtteUFkZHJlc3NUeAUAAAAJbXlBZGRyZXNzBwkAAAAAAAACBQAAABByZWNpcGllbnRBZGRyZXNzBQAAABJyZWNpcGllbnRBZGRyZXNzVHgHBty4kOQ=",
"chainId": 84,
"height": 448319,
"spentComplexity": 0
}
View: original | compacted
Prev: CtvyPSMZa1FMiDcB76e8XAiyWzczGYKgePvMcY1ZVK8c
Next: 3GuDwUrzP5a4sc6K6DPSPdknWMiLpYG6d3v8EHyrZBow
Diff:
Old | New | | Differences |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | 5 | | let myPubKey = base58'9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo' |
---|
| 6 | + | let myAddress = extract(addressFromString("3N7wisr78en3DHbwkc35dav7MexLnSvu73h")) |
---|
| 7 | + | let recipientAddress = extract(addressFromString("3MtBqEtkF8cYkNJv85QUS4wteNj48ZMAnt9")) |
---|
| 8 | + | let myAddressTx = t.sender |
---|
| 9 | + | let recipientAddressTx = addressFromRecipient(t.recipient) |
---|
6 | 10 | | let AC = sigVerify(t.bodyBytes, t.proofs[0], myPubKey) |
---|
7 | | - | AC |
---|
| 11 | + | if (if (AC) |
---|
| 12 | + | then (myAddressTx == myAddress) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (recipientAddress == recipientAddressTx) |
---|
| 15 | + | else false |
---|
8 | 16 | | case _ => |
---|
9 | 17 | | true |
---|
10 | 18 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | 5 | | let myPubKey = base58'9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo' |
---|
| 6 | + | let myAddress = extract(addressFromString("3N7wisr78en3DHbwkc35dav7MexLnSvu73h")) |
---|
| 7 | + | let recipientAddress = extract(addressFromString("3MtBqEtkF8cYkNJv85QUS4wteNj48ZMAnt9")) |
---|
| 8 | + | let myAddressTx = t.sender |
---|
| 9 | + | let recipientAddressTx = addressFromRecipient(t.recipient) |
---|
6 | 10 | | let AC = sigVerify(t.bodyBytes, t.proofs[0], myPubKey) |
---|
7 | | - | AC |
---|
| 11 | + | if (if (AC) |
---|
| 12 | + | then (myAddressTx == myAddress) |
---|
| 13 | + | else false) |
---|
| 14 | + | then (recipientAddress == recipientAddressTx) |
---|
| 15 | + | else false |
---|
8 | 16 | | case _ => |
---|
9 | 17 | | true |
---|
10 | 18 | | } |
---|