mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-02 13:43:06 +00:00
Catch JsonRpcProviderError instead of ProviderError
This commit is contained in:
parent
228d18efcc
commit
2336db0ffb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user