Skip to content

Commit 03527a9

Browse files
edg-lCPerezz
authored andcommitted
fix: update ethrex exception mapper for gas limit errors (ethereum#2209)
Add INVALID_GASLIMIT substring mapping. Remove GAS_USED_OVERFLOW regex since ethrex now uses a consistent "Gas allowance exceeded" message.
1 parent 45955e0 commit 03527a9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • packages/testing/src/execution_testing/client_clis/clis

packages/testing/src/execution_testing/client_clis/clis/ethrex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class EthrexExceptionMapper(ExceptionMapper):
1111
"""Ethrex exception mapper."""
1212

1313
mapping_substring = {
14+
BlockException.INVALID_GASLIMIT: (
15+
"Gas limit changed more than allowed from the parent"
16+
),
1417
TransactionException.TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED: (
1518
"Exceeded MAX_BLOB_GAS_PER_BLOCK"
1619
),

0 commit comments

Comments
 (0)