File tree Expand file tree Collapse file tree 11 files changed +23
-23
lines changed
tests/prague/eip6110_deposits Expand file tree Collapse file tree 11 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ Users can select any of the artifacts depending on their testing needs for their
37
37
- 🐞 ` fill ` no longer writes generated fixtures into an existing, non-empty output directory; it must now be empty or ` --clean ` must be used to delete it first ([ #1608 ] ( https://github.com/ethereum/execution-spec-tests/pull/1608 ) ).
38
38
- 🐞 zkEVM marked tests have been removed from ` tests-deployed ` tox environment into its own separate workflow ` tests-deployed-zkevm ` and are filled by ` evmone-t8n ` ([ #1617 ] ( https://github.com/ethereum/execution-spec-tests/pull/1617 ) ).
39
39
- ✨ Field ` postStateHash ` is now added to all ` blockchain_test ` and ` blockchain_test_engine ` tests that use ` exclude_full_post_state_in_output ` in place of ` postState ` . Fixes ` evmone-blockchaintest ` test consumption and indirectly fixes coverage runs for these tests ([ #1667 ] ( https://github.com/ethereum/execution-spec-tests/pull/1667 ) ).
40
+ - 🔀 Changed INVALID_DEPOSIT_EVENT_LAYOUT to a BlockException instead of a TransactionException ([ #1773 ] ( https://github.com/ethereum/execution-spec-tests/pull/1773 ) ).
40
41
41
42
#### ` consume `
42
43
Original file line number Diff line number Diff line change @@ -317,6 +317,11 @@ class BesuExceptionMapper(ExceptionMapper):
317
317
BlockException .SYSTEM_CONTRACT_EMPTY : (
318
318
r"(Invalid system call, no code at address)|" r"(Invalid system call address:)"
319
319
),
320
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : (
321
+ r"Invalid (amount|index|pubKey|signature|withdrawalCred) (offset|size): "
322
+ r"expected (\d+), but got (-?\d+)|"
323
+ r"Invalid deposit log length\. Must be \d+ bytes, but is \d+ bytes"
324
+ ),
320
325
TransactionException .INITCODE_SIZE_EXCEEDED : (
321
326
r"transaction invalid Initcode size of \d+ exceeds maximum size of \d+"
322
327
),
@@ -337,11 +342,6 @@ class BesuExceptionMapper(ExceptionMapper):
337
342
TransactionException .NONCE_MISMATCH_TOO_LOW : (
338
343
r"transaction invalid transaction nonce \d+ below sender account nonce \d+"
339
344
),
340
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : (
341
- r"Invalid (amount|index|pubKey|signature|withdrawalCred) (offset|size): "
342
- r"expected (\d+), but got (-?\d+)|"
343
- r"Invalid deposit log length\. Must be \d+ bytes, but is \d+ bytes"
344
- ),
345
345
TransactionException .GAS_LIMIT_EXCEEDS_MAXIMUM : (
346
346
r"transaction invalid Transaction gas limit must be at most \d+"
347
347
),
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class ErigonExceptionMapper(ExceptionMapper):
35
35
),
36
36
TransactionException .TYPE_4_TX_CONTRACT_CREATION : "wrong size for To: 0" ,
37
37
TransactionException .TYPE_4_TX_PRE_FORK : "setCode tx is not supported by signer" ,
38
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : "could not parse requests logs" ,
38
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : "could not parse requests logs" ,
39
39
BlockException .SYSTEM_CONTRACT_EMPTY : "Syscall failure: Empty Code at" ,
40
40
BlockException .SYSTEM_CONTRACT_CALL_FAILED : "Unprecedented Syscall failure" ,
41
41
BlockException .INVALID_REQUESTS : "invalid requests root hash in header" ,
Original file line number Diff line number Diff line change @@ -90,12 +90,12 @@ class EthereumJSExceptionMapper(ExceptionMapper):
90
90
"sender doesn't have enough funds to send tx"
91
91
),
92
92
TransactionException .NONCE_MISMATCH_TOO_LOW : "the tx doesn't have the correct nonce" ,
93
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : (
94
- "Error verifying block while running: error: number exceeds 53 bits"
95
- ),
96
93
TransactionException .GAS_ALLOWANCE_EXCEEDED : "tx has a higher gas limit than the block" ,
97
94
BlockException .INCORRECT_EXCESS_BLOB_GAS : "Invalid 4844 transactions" ,
98
95
BlockException .INVALID_RECEIPTS_ROOT : "invalid receipttrie" ,
96
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : (
97
+ "Error verifying block while running: error: number exceeds 53 bits"
98
+ ),
99
99
# TODO EVMONE needs to differentiate when the section is missing in the header or body
100
100
EOFException .MISSING_STOP_OPCODE : "err: no_terminating_instruction" ,
101
101
EOFException .MISSING_CODE_HEADER : "err: code_section_missing" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class EthrexExceptionMapper(ExceptionMapper):
10
10
TransactionException .TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED : (
11
11
"Exceeded MAX_BLOB_GAS_PER_BLOCK"
12
12
),
13
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : ("Invalid deposit request layout" ),
13
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : ("Invalid deposit request layout" ),
14
14
BlockException .INVALID_REQUESTS : (
15
15
"Requests hash does not match the one in the header after executing"
16
16
),
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ class ExecutionSpecsExceptionMapper(ExceptionMapper):
163
163
TransactionException .GAS_ALLOWANCE_EXCEEDED : "ion: " ,
164
164
BlockException .SYSTEM_CONTRACT_EMPTY : "System contract address" ,
165
165
BlockException .SYSTEM_CONTRACT_CALL_FAILED : "call failed:" ,
166
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : "deposit" ,
166
167
# TODO EVMONE needs to differentiate when the section is missing in the header or body
167
168
EOFException .MISSING_STOP_OPCODE : "err: no_terminating_instruction" ,
168
169
EOFException .MISSING_CODE_HEADER : "err: code_section_missing" ,
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class GethExceptionMapper(ExceptionMapper):
73
73
TransactionException .TYPE_4_TX_PRE_FORK : ("transaction type not supported" ),
74
74
TransactionException .INITCODE_SIZE_EXCEEDED : "max initcode size exceeded" ,
75
75
TransactionException .NONCE_MISMATCH_TOO_LOW : "nonce too low" ,
76
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : "unable to parse deposit data" ,
76
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : "unable to parse deposit data" ,
77
77
BlockException .INCORRECT_BLOB_GAS_USED : "blob gas used mismatch" ,
78
78
BlockException .INCORRECT_EXCESS_BLOB_GAS : "invalid excessBlobGas" ,
79
79
BlockException .INVALID_VERSIONED_HASHES : "invalid number of versionedHashes" ,
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ class NethermindExceptionMapper(ExceptionMapper):
360
360
BlockException .INVALID_GAS_USED_ABOVE_LIMIT : (
361
361
"ExceededGasLimit: Gas used exceeds gas limit."
362
362
),
363
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : (
363
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : (
364
364
"DepositsInvalid: Invalid deposit event layout:"
365
365
),
366
366
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class RethExceptionMapper(ExceptionMapper):
29
29
TransactionException .TYPE_4_TX_PRE_FORK : (
30
30
"eip 7702 transactions present in pre-prague payload"
31
31
),
32
- TransactionException .INVALID_DEPOSIT_EVENT_LAYOUT : (
32
+ BlockException .INVALID_DEPOSIT_EVENT_LAYOUT : (
33
33
"failed to decode deposit requests from receipts"
34
34
),
35
35
BlockException .INVALID_REQUESTS : "mismatched block requests hash" ,
Original file line number Diff line number Diff line change @@ -395,11 +395,6 @@ class TransactionException(ExceptionBase):
395
395
"""
396
396
Transaction type 4 included before activation fork.
397
397
"""
398
- INVALID_DEPOSIT_EVENT_LAYOUT = auto ()
399
- """
400
- Transaction emits a `DepositEvent` in the deposit contract (EIP-6110), but the layout
401
- of the event does not match the required layout.
402
- """
403
398
404
399
405
400
@unique
@@ -604,6 +599,11 @@ class BlockException(ExceptionBase):
604
599
"""
605
600
Block header's hash does not match the actually computed hash of the block.
606
601
"""
602
+ INVALID_DEPOSIT_EVENT_LAYOUT = auto ()
603
+ """
604
+ Transaction emits a `DepositEvent` in the deposit contract (EIP-6110), but the layout
605
+ of the event does not match the required layout.
606
+ """
607
607
608
608
609
609
@unique
You can’t perform that action at this time.
0 commit comments