Skip to content

Commit a4da316

Browse files
authored
chore(cli): Use regex for missing-module-definition exceptions (#2127)
1 parent e28cb6d commit a4da316

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ethereum_clis/clis/execution_specs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,6 @@ class ExecutionSpecsExceptionMapper(ExceptionMapper):
151151
TransactionException.INSUFFICIENT_MAX_FEE_PER_BLOB_GAS: (
152152
"InsufficientMaxFeePerBlobGasError"
153153
),
154-
TransactionException.TYPE_3_TX_PRE_FORK: (
155-
"module 'ethereum.shanghai.transactions' has no attribute 'BlobTransaction'"
156-
),
157-
TransactionException.TYPE_4_TX_PRE_FORK: (
158-
"'ethereum.cancun.transactions' has no attribute 'SetCodeTransaction'"
159-
),
160154
TransactionException.TYPE_3_TX_INVALID_BLOB_VERSIONED_HASH: (
161155
"InvalidBlobVersionedHashError"
162156
),
@@ -186,4 +180,10 @@ class ExecutionSpecsExceptionMapper(ExceptionMapper):
186180
TransactionException.INSUFFICIENT_MAX_FEE_PER_GAS: (
187181
r"InsufficientMaxFeePerGasError|InvalidBlock" # Temporary solution for issue #1981.
188182
),
183+
TransactionException.TYPE_3_TX_PRE_FORK: (
184+
r"module '.*transactions' has no attribute 'BlobTransaction'"
185+
),
186+
TransactionException.TYPE_4_TX_PRE_FORK: (
187+
r"'.*transactions' has no attribute 'SetCodeTransaction'"
188+
),
189189
}

0 commit comments

Comments
 (0)