Skip to content

Commit 68e0189

Browse files
flcl42Carsons-Eels
authored andcommitted
fix(clis/nethermind): Add errors for system contract failures (ethereum#1542)
1 parent 5d802cc commit 68e0189

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ethereum_clis/clis/nethermind.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,4 +380,10 @@ class NethermindExceptionMapper(ExceptionMapper):
380380
BlockException.INVALID_BLOCK_HASH: (
381381
r"Invalid block hash 0x[0-9a-f]+ does not match calculated hash 0x[0-9a-f]+"
382382
),
383+
BlockException.SYSTEM_CONTRACT_EMPTY: (
384+
r"(Withdrawals|Consolidations)\: Contract is not deployed\."
385+
),
386+
BlockException.SYSTEM_CONTRACT_CALL_FAILED: (
387+
r"(Withdrawals|Consolidations)\: Contract execution failed\."
388+
),
383389
}

0 commit comments

Comments
 (0)