Skip to content

Commit 31a9089

Browse files
authored
chore(cli): update exception mapping for ethrex (#2226)
* Changed intrinsic gas too low for gas below floor gas cost * Fixing wrongly removing intrinsic gas too low error * Fixing message for intrinsic gas too low error * Improved error messages * Added mapping for nonce is max error
1 parent 90b15e6 commit 31a9089

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ethereum_clis/clis/ethrex.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ class EthrexExceptionMapper(ExceptionMapper):
6363
),
6464
TransactionException.INTRINSIC_GAS_TOO_LOW: (
6565
r"gas floor exceeds the gas limit|call gas cost exceeds the gas limit|"
66-
r"Intrinsic gas too low"
66+
r"Transaction gas limit lower than the minimum gas cost to execute the transaction"
67+
),
68+
TransactionException.INTRINSIC_GAS_BELOW_FLOOR_GAS_COST: (
69+
r"Transaction gas limit lower than the gas cost floor for calldata tokens"
6770
),
6871
TransactionException.INSUFFICIENT_MAX_FEE_PER_GAS: (
6972
r"gas price is less than basefee|Insufficient max fee per gas"
@@ -75,6 +78,7 @@ class EthrexExceptionMapper(ExceptionMapper):
7578
TransactionException.INITCODE_SIZE_EXCEEDED: (
7679
r"create initcode size limit|Initcode size exceeded.*"
7780
),
81+
TransactionException.NONCE_IS_MAX: (r"Nonce is max"),
7882
TransactionException.GAS_ALLOWANCE_EXCEEDED: (r"Gas allowance exceeded.*"),
7983
TransactionException.TYPE_3_TX_BLOB_COUNT_EXCEEDED: (r"Blob count exceeded.*"),
8084
BlockException.SYSTEM_CONTRACT_CALL_FAILED: (r"System call failed.*"),

0 commit comments

Comments
 (0)