Skip to content

Commit f3354c6

Browse files
authored
chore(cli): update reth gas limit exception mapper
Update regex pattern to match new Reth error message format: - Old: "transaction 0x[hash] gas limit X exceeds maximum Y" - New: "transaction gas limit (X) is greater than the cap (Y)"
1 parent 10067fc commit f3354c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ethereum_clis/clis/reth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class RethExceptionMapper(ExceptionMapper):
5858
r"transaction gas limit \w+ is more than blocks available gas \w+"
5959
),
6060
TransactionException.GAS_LIMIT_EXCEEDS_MAXIMUM: (
61-
r"transaction 0x[a-fA-F0-9]+ gas limit \d+ exceeds maximum \d+"
61+
r"transaction gas limit.*is greater than the cap"
6262
),
6363
BlockException.SYSTEM_CONTRACT_CALL_FAILED: r"failed to apply .* requests contract call",
6464
BlockException.INCORRECT_BLOB_GAS_USED: (

0 commit comments

Comments
 (0)