tx · 9bkGSe5PCQZyBysQ8xM2pexJk2C43G9B9WBAUy3m9pnf
3Mt5BW4KVsvfxGUYuDqcfDMeoacc5GPn179: -0.01400000 Waves
2019.03.13 11:37 [534111] smart account 3Mt5BW4KVsvfxGUYuDqcfDMeoacc5GPn179 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9bkGSe5PCQZyBysQ8xM2pexJk2C43G9B9WBAUy3m9pnf",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1552466357628,
"version": 1,
"sender": "3Mt5BW4KVsvfxGUYuDqcfDMeoacc5GPn179",
"senderPublicKey": "F7KHa5J2ja7H22YreD3YJ8rBEFcvpa3DvQhFG4ZUXk8P",
"proofs": [
"3M116vJ29qz6ZeiuotirhDULfFjHjDX7GYYQy49Mg1ajKbSE8zpvoR8seX1PAWejFw52uQvoHmhpb3rnPKbtSxGK"
],
"script": "base64:AQMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAEdHJUeAUAAAAHJG1hdGNoMAQAAAAHcG9zSGFzaAkBAAAAB2V4dHJhY3QAAAABCQAEHQAAAAIIBQAAAAJ0eAAAAAZzZW5kZXICAAAABmhhc2gyNAMJAAAAAAAAAgkBAAAADnRha2VSaWdodEJ5dGVzAAAAAgkAAMkAAAACCAUAAAAEdHJUeAAAAAphdHRhY2htZW50AAAAAAAAAAAEAAAAAAAAAAABCQABmwAAAAECAAAAATEJAAAAAAAAAgkAAfcAAAABCAUAAAAEdHJUeAAAAAphdHRhY2htZW50CQABmwAAAAEFAAAAB3Bvc0hhc2gHBgfLeEdG",
"chainId": 84,
"height": 534111,
"spentComplexity": 0
}
View: original | compacted
Prev: FYFxqCBAmhPuRfG1sSjoN61FqrsdEh31J2F6ggxjrEM8
Next: aPq9jWxCiR52pXh6EsXb9VWidixvMNCqpVPDhKNxH5M
Diff:
Old | New | | Differences |
---|
4 | 4 | | then match tx { |
---|
5 | 5 | | case trTx: TransferTransaction => |
---|
6 | 6 | | let posHash = extract(getString(tx.sender, "hash24")) |
---|
7 | | - | (trTx.attachment == toBytes("4wLMu2xuK4PFf3Tph6z2HtxxZNuZipRsTAXWULoyJSne")) |
---|
| 7 | + | if ((takeRightBytes(take(trTx.attachment, 4), 1) == toBytes("1"))) |
---|
| 8 | + | then (sha256(trTx.attachment) == toBytes(posHash)) |
---|
| 9 | + | else false |
---|
8 | 10 | | case _ => |
---|
9 | 11 | | true |
---|
10 | 12 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) |
---|
4 | 4 | | then match tx { |
---|
5 | 5 | | case trTx: TransferTransaction => |
---|
6 | 6 | | let posHash = extract(getString(tx.sender, "hash24")) |
---|
7 | | - | (trTx.attachment == toBytes("4wLMu2xuK4PFf3Tph6z2HtxxZNuZipRsTAXWULoyJSne")) |
---|
| 7 | + | if ((takeRightBytes(take(trTx.attachment, 4), 1) == toBytes("1"))) |
---|
| 8 | + | then (sha256(trTx.attachment) == toBytes(posHash)) |
---|
| 9 | + | else false |
---|
8 | 10 | | case _ => |
---|
9 | 11 | | true |
---|
10 | 12 | | } |
---|
11 | 13 | | else false |
---|