Skip to content
Draft
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
4 changes: 4 additions & 0 deletions src/ethereum_clis/clis/ethrex.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class EthrexExceptionMapper(ExceptionMapper):
),
BlockException.INVALID_GAS_USED: "Gas used doesn't match value in header",
BlockException.INCORRECT_BLOB_GAS_USED: "Blob gas used doesn't match value in header",
TransactionException.GAS_LIMIT_EXCEEDS_MAXIMUM: "Transaction gas max limit exceeded for Osaka",
}
mapping_regex = {
TransactionException.PRIORITY_GREATER_THAN_MAX_FEE_PER_GAS: (
Expand All @@ -37,6 +38,9 @@ class EthrexExceptionMapper(ExceptionMapper):
TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED: (
r"blob gas used \d+ exceeds maximum allowance \d+"
),
TransactionException.GAS_ALLOWANCE_EXCEEDED: (
r"Gas allowance exceeded. Block gas limit: \d+, transaction gas limit: \d+"
),
TransactionException.TYPE_3_TX_ZERO_BLOBS: (
r"blob transactions present in pre-cancun payload|empty blobs|"
r"Type 3 transaction without blobs"
Expand Down