Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions packages/testing/src/execution_testing/client_clis/clis/ethrex.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ class EthrexExceptionMapper(ExceptionMapper):
BlockException.INVALID_BASEFEE_PER_GAS: (
"Base fee per gas is incorrect"
),
BlockException.INVALID_BLOCK_ACCESS_LIST: (
"Block access list hash does not match the one in "
"the header after executing"
),
BlockException.INVALID_BAL_HASH: (
"Block access list hash does not match the one in "
"the header after executing"
),
BlockException.INVALID_BAL_EXTRA_ACCOUNT: (
"Block access list hash does not match the one in "
"the header after executing"
),
BlockException.INVALID_BAL_MISSING_ACCOUNT: (
"Block access list hash does not match the one in "
"the header after executing"
),
}
mapping_regex = {
TransactionException.PRIORITY_GREATER_THAN_MAX_FEE_PER_GAS: (
Expand Down Expand Up @@ -116,6 +132,7 @@ class EthrexExceptionMapper(ExceptionMapper):
TransactionException.GAS_ALLOWANCE_EXCEEDED: (
r"Gas allowance exceeded.*"
),
BlockException.GAS_USED_OVERFLOW: (r"Block gas used overflow.*"),
TransactionException.TYPE_3_TX_BLOB_COUNT_EXCEEDED: (
r"Blob count exceeded.*"
),
Expand Down Expand Up @@ -145,4 +162,16 @@ class EthrexExceptionMapper(ExceptionMapper):
BlockException.RLP_BLOCK_LIMIT_EXCEEDED: (
r"Maximum block size exceeded.*"
),
BlockException.INVALID_BLOCK_ACCESS_LIST: (
r"Block access list contains index \d+ "
r"exceeding max valid index \d+|"
r"Failed to RLP decode BAL"
),
BlockException.INCORRECT_BLOCK_FORMAT: (
r"Block access list hash does not match "
r"the one in the header after executing|"
r"Block access list contains index \d+ "
r"exceeding max valid index \d+|"
r"Failed to RLP decode BAL"
),
}
Loading