tx · CFope2pCNiQwxpyVuieKCNVp5aqb7nH3twFdHhXM9Je
3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf: -0.01000000 Waves
2022.11.07 02:19 [2305922] smart account 3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf > SELF 0.00000000 Waves
{
"type": 13,
"id": "CFope2pCNiQwxpyVuieKCNVp5aqb7nH3twFdHhXM9Je",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1667776779186,
"version": 2,
"chainId": 84,
"sender": "3NC919nbxwuSaHY8X6x8NmqD1zZdWSd7gaf",
"senderPublicKey": "Fvzdy4Qppd2VzNFAj8ySdyEvhoiRFQfm9WyUtWbe96zY",
"proofs": [
"5WeAgCr9syHw94VtSj3AhuZfwDmXncFa4CVZLX1T8Cf87BVQHmhcreUHnvp3eNRJXgRtKPJYiunWiMcqqBdZVXim"
],
"script": "base64:BgEEByRtYXRjaDAFAnR4AwkAAQIFByRtYXRjaDACF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAF0BQckbWF0Y2gwAwkAZgIJAJADAQgFAnR4BnByb29mcwAACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwMJAAACCAUBdARkQXBwCQERQGV4dHJOYXRpdmUoMTA2MikBAiMzTXR6MlQ2b0xGa0s0RjdRdlNyaHRwVjdaNWdNYnJlb05taQkAAAIIBQF0CGZ1bmN0aW9uAgVkdW1teQcDCQBmAgkAkAMBCAUBdAhwYXltZW50cwAACQACAQIbdGhlcmUgc2hvdWxkIGJlIG5vIHBheW1lbnRzAwMJAGYCCAUBdANmZWUAoMIeBgkBCWlzRGVmaW5lZAEIBQF0CmZlZUFzc2V0SWQJAAIBAhlmZWUgc2hvdWxkIGJlIDAuMDA1IFdBVkVTBgkAAgECOW9ubHkgY2FsbGluZyBzcGVjaWZpZWQgZnVuY3Rpb24gb24gc3BlY2lmaWVkIGRhcHAgYWxsb3dlZAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZLlhr0=",
"height": 2305922,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 9wd6uCVYR8VfrRciLmzhSiLajvDrtfZVrPm7Bf3B5iHH
Next: 4JCRQGXhxon1N3FsUXvbrQaKQxbt8sQJUfEty66fVdzW
Diff:
Old | New | | Differences |
---|
8 | 8 | | then (t.function == "dummy") |
---|
9 | 9 | | else false) |
---|
10 | 10 | | then if ((size(t.payments) > 0)) |
---|
11 | | - | then false |
---|
| 11 | + | then throw("there should be no payments") |
---|
12 | 12 | | else if (if ((t.fee > 500000)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else isDefined(t.feeAssetId)) |
---|
15 | | - | then false |
---|
| 15 | + | then throw("fee should be 0.005 WAVES") |
---|
16 | 16 | | else true |
---|
17 | | - | else false |
---|
| 17 | + | else throw("only calling specified function on specified dapp allowed") |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
20 | 20 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: InvokeScriptTransaction => |
---|
5 | 5 | | if ((size(tx.proofs) > 0)) |
---|
6 | 6 | | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
7 | 7 | | else if (if ((t.dApp == addressFromStringValue("3Mtz2T6oLFkK4F7QvSrhtpV7Z5gMbreoNmi"))) |
---|
8 | 8 | | then (t.function == "dummy") |
---|
9 | 9 | | else false) |
---|
10 | 10 | | then if ((size(t.payments) > 0)) |
---|
11 | | - | then false |
---|
| 11 | + | then throw("there should be no payments") |
---|
12 | 12 | | else if (if ((t.fee > 500000)) |
---|
13 | 13 | | then true |
---|
14 | 14 | | else isDefined(t.feeAssetId)) |
---|
15 | | - | then false |
---|
| 15 | + | then throw("fee should be 0.005 WAVES") |
---|
16 | 16 | | else true |
---|
17 | | - | else false |
---|
| 17 | + | else throw("only calling specified function on specified dapp allowed") |
---|
18 | 18 | | case _ => |
---|
19 | 19 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
20 | 20 | | } |
---|