From 2336db0ffb1d0e918d17f95d2eb326c96efc594f Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 20 May 2025 15:51:20 +0200 Subject: [PATCH] Catch JsonRpcProviderError instead of ProviderError --- ethers/providers/jsonrpc.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers/providers/jsonrpc.nim b/ethers/providers/jsonrpc.nim index f2abe85..65420a1 100644 --- a/ethers/providers/jsonrpc.nim +++ b/ethers/providers/jsonrpc.nim @@ -161,7 +161,7 @@ method getMaxPriorityFeePerGas*( convertError: let client = await provider.client return await client.eth_maxPriorityFeePerGas() - except ProviderError: + except JsonRpcProviderError: # If the provider does not provide the implementation # let's just remove the manual value return provider.maxPriorityFeePerGas