Skip to content

Commit 6e2af40

Browse files
committed
chore(clis): update exception mappers for TYPE_4_TX_PRE_FORK
1 parent e1dbbf6 commit 6e2af40

File tree

5 files changed

+11
-0
lines changed

5 files changed

+11
-0
lines changed

Diff for: src/ethereum_clis/clis/besu.py

+3
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ class BesuExceptionMapper(ExceptionMapper):
244244
TransactionException.TYPE_4_TX_CONTRACT_CREATION: (
245245
"transaction invalid transaction code delegation transactions must have a to address"
246246
),
247+
TransactionException.TYPE_4_TX_PRE_FORK: (
248+
"transaction invalid Transaction type DELEGATE_CODE is invalid"
249+
),
247250
BlockException.RLP_STRUCTURES_ENCODING: (
248251
"Failed to decode transactions from block parameter"
249252
),

Diff for: src/ethereum_clis/clis/erigon.py

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class ErigonExceptionMapper(ExceptionMapper):
3131
"SetCodeTransaction without authorizations is invalid"
3232
),
3333
TransactionException.TYPE_4_TX_CONTRACT_CREATION: "wrong size for To: 0",
34+
TransactionException.TYPE_4_TX_PRE_FORK: "setCode tx is not supported by signer",
3435
BlockException.INVALID_REQUESTS: "invalid requests root hash in header",
3536
BlockException.INVALID_BLOCK_HASH: "invalid block hash",
3637
}

Diff for: src/ethereum_clis/clis/geth.py

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class GethExceptionMapper(ExceptionMapper):
6161
TransactionException.TYPE_4_TX_CONTRACT_CREATION: (
6262
"input string too short for common.Address, decoding into (types.SetCodeTx).To"
6363
),
64+
TransactionException.TYPE_4_TX_PRE_FORK: ("transaction type not supported"),
6465
TransactionException.INITCODE_SIZE_EXCEEDED: "max initcode size exceeded",
6566
TransactionException.NONCE_MISMATCH_TOO_LOW: "nonce too low",
6667
BlockException.INCORRECT_BLOB_GAS_USED: "blob gas used mismatch",

Diff for: src/ethereum_clis/clis/nethermind.py

+3
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ class NethermindExceptionMapper(ExceptionMapper):
347347
TransactionException.TYPE_4_TX_CONTRACT_CREATION: (
348348
"NotAllowedCreateTransaction: To must be set"
349349
),
350+
TransactionException.TYPE_4_TX_PRE_FORK: (
351+
"InvalidTxType: Transaction type in Custom is not supported"
352+
),
350353
BlockException.INCORRECT_BLOB_GAS_USED: (
351354
"HeaderBlobGasMismatch: Blob gas in header does not match calculated"
352355
),

Diff for: src/ethereum_clis/clis/reth.py

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class RethExceptionMapper(ExceptionMapper):
2727
),
2828
TransactionException.TYPE_4_EMPTY_AUTHORIZATION_LIST: "empty authorization list",
2929
TransactionException.TYPE_4_TX_CONTRACT_CREATION: "unexpected length",
30+
TransactionException.TYPE_4_TX_PRE_FORK: (
31+
"eip 7702 transactions present in pre-prague payload"
32+
),
3033
BlockException.INVALID_REQUESTS: "mismatched block requests hash",
3134
BlockException.INVALID_RECEIPTS_ROOT: "receipt root mismatch",
3235
BlockException.INVALID_STATE_ROOT: "mismatched block state root",

0 commit comments

Comments
 (0)