Skip to content

Commit 4e35d0f

Browse files
authored
fix(clis/nethermind): Add/correct error messages for Nethermind (#1602)
1 parent f6bd188 commit 4e35d0f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ethereum_clis/clis/nethermind.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ class NethermindExceptionMapper(ExceptionMapper):
360360
BlockException.INVALID_GAS_USED_ABOVE_LIMIT: (
361361
"ExceededGasLimit: Gas used exceeds gas limit."
362362
),
363+
TransactionException.INVALID_DEPOSIT_EVENT_LAYOUT: (
364+
"DepositsInvalid: Invalid deposit event layout:"
365+
),
363366
}
364367
mapping_regex = {
365368
TransactionException.INSUFFICIENT_ACCOUNT_FUNDS: (
@@ -382,9 +385,9 @@ class NethermindExceptionMapper(ExceptionMapper):
382385
r"Invalid block hash 0x[0-9a-f]+ does not match calculated hash 0x[0-9a-f]+"
383386
),
384387
BlockException.SYSTEM_CONTRACT_EMPTY: (
385-
r"(Withdrawals|Consolidations)\: Contract is not deployed\."
388+
r"(Withdrawals|Consolidations)Empty\: Contract is not deployed\."
386389
),
387390
BlockException.SYSTEM_CONTRACT_CALL_FAILED: (
388-
r"(Withdrawals|Consolidations)\: Contract execution failed\."
391+
r"(Withdrawals|Consolidations)Failed\: Contract execution failed\."
389392
),
390393
}

0 commit comments

Comments
 (0)