tx · Gf3huCV5hAt6AvgtoUvPeMEjumEYrsC7adyM3fbCrMP6
3N5avGf1Wr9gmTPHstXo1CECppRgXEbTj8j: -0.01000000 Waves
2022.11.28 16:32 [2337021] smart account 3N5avGf1Wr9gmTPHstXo1CECppRgXEbTj8j > SELF 0.00000000 Waves
{
"type": 13,
"id": "Gf3huCV5hAt6AvgtoUvPeMEjumEYrsC7adyM3fbCrMP6",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1669642452524,
"version": 2,
"chainId": 84,
"sender": "3N5avGf1Wr9gmTPHstXo1CECppRgXEbTj8j",
"senderPublicKey": "4kBZJBZZeh6bSRrKKgJcTzRaat82QWu7Wn81HDDJiXd7",
"proofs": [
"5jDjX3p5mKxzfvFCaed5RbrBkm1f3mNi3V45cFjBdYCr5CpcMNRYRTkF1G3rpyTPv29rNtejT7VJcSKpN5Nyh6Zp"
],
"script": "base64:BgICCAIAAAECdHgBBnZlcmlmeQAEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACBU9yZGVyBAVvcmRlcgUHJG1hdGNoMAQJcHJpY2VNb2RlCQDcBAEJAMwBAgkAzQECCAUFb3JkZXIJYm9keUJ5dGVzACAAAQQOcHJpY2VNb2RlRWNkc2EJANwEAQkAzAECCQDNAQIIBQVvcmRlcglib2R5Qnl0ZXMAQQABCQACAQkAuQkCCQDMCAIFCXByaWNlTW9kZQkAzAgCBQ5wcmljZU1vZGVFY2RzYQUDbmlsAgEgCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5DyINSQ==",
"height": 2337021,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6BuK9gpVA4GnMrzm3owkDVkxhKkR4qetgmidQEev8WJH
Next: C8xud3Y1VgWnPnxY7QxwveKPqyHGvMGRkoiAa8VRPXg7
Diff:
Old | New | | Differences |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
9 | 9 | | case order: Order => |
---|
10 | | - | let priceMode = toUtf8String(takeRight(dropRight(order.bodyBytes, 32), 1)) |
---|
11 | | - | let priceModeEcdsa = toUtf8String(takeRight(dropRight(order.bodyBytes, 65), 1)) |
---|
| 10 | + | let priceMode = toBase16String(takeRight(dropRight(order.bodyBytes, 32), 1)) |
---|
| 11 | + | let priceModeEcdsa = toBase16String(takeRight(dropRight(order.bodyBytes, 65), 1)) |
---|
12 | 12 | | throw(makeString([priceMode, priceModeEcdsa], " ")) |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
9 | 9 | | case order: Order => |
---|
10 | | - | let priceMode = toUtf8String(takeRight(dropRight(order.bodyBytes, 32), 1)) |
---|
11 | | - | let priceModeEcdsa = toUtf8String(takeRight(dropRight(order.bodyBytes, 65), 1)) |
---|
| 10 | + | let priceMode = toBase16String(takeRight(dropRight(order.bodyBytes, 32), 1)) |
---|
| 11 | + | let priceModeEcdsa = toBase16String(takeRight(dropRight(order.bodyBytes, 65), 1)) |
---|
12 | 12 | | throw(makeString([priceMode, priceModeEcdsa], " ")) |
---|
13 | 13 | | case _ => |
---|
14 | 14 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|