Skip to content

Commit d848e06

Browse files
authored
fix(clis/reth,evmone): Exception mapper fixes (#1549)
1 parent 1620a08 commit d848e06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/ethereum_clis/clis/evmone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class EvmoneExceptionMapper(ExceptionMapper):
7272
TransactionException.INSUFFICIENT_MAX_FEE_PER_BLOB_GAS: (
7373
"max blob fee per gas less than block base fee"
7474
),
75+
TransactionException.TYPE_4_TX_PRE_FORK: "transaction type not supported",
7576
TransactionException.TYPE_3_TX_PRE_FORK: "transaction type not supported",
7677
TransactionException.TYPE_3_TX_INVALID_BLOB_VERSIONED_HASH: "invalid blob hash version",
7778
TransactionException.TYPE_3_TX_BLOB_COUNT_EXCEEDED: "blob gas limit exceeded",

src/ethereum_clis/clis/reth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class RethExceptionMapper(ExceptionMapper):
2323
TransactionException.TYPE_3_TX_CONTRACT_CREATION: "unexpected length",
2424
TransactionException.TYPE_3_TX_WITH_FULL_BLOBS: "unexpected list",
2525
TransactionException.TYPE_3_TX_INVALID_BLOB_VERSIONED_HASH: "blob version not supported",
26+
TransactionException.TYPE_3_TX_ZERO_BLOBS: "empty blobs",
2627
TransactionException.TYPE_4_EMPTY_AUTHORIZATION_LIST: "empty authorization list",
2728
TransactionException.TYPE_4_TX_CONTRACT_CREATION: "unexpected length",
2829
TransactionException.TYPE_4_TX_PRE_FORK: (
@@ -48,7 +49,7 @@ class RethExceptionMapper(ExceptionMapper):
4849
TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED: (
4950
r"blob gas used \d+ exceeds maximum allowance \d+"
5051
),
51-
TransactionException.TYPE_3_TX_ZERO_BLOBS: (
52+
TransactionException.TYPE_3_TX_PRE_FORK: (
5253
r"blob transactions present in pre-cancun payload|empty blobs"
5354
),
5455
TransactionException.GAS_ALLOWANCE_EXCEEDED: (

0 commit comments

Comments
 (0)