mirror of
https://github.com/logos-storage/nim-ethers.git
synced 2026-01-08 16:43:09 +00:00
Catch JsonRpcProviderError instead of ProviderError
This commit is contained in:
parent
228d18efcc
commit
2336db0ffb
@ -161,7 +161,7 @@ method getMaxPriorityFeePerGas*(
|
|||||||
convertError:
|
convertError:
|
||||||
let client = await provider.client
|
let client = await provider.client
|
||||||
return await client.eth_maxPriorityFeePerGas()
|
return await client.eth_maxPriorityFeePerGas()
|
||||||
except ProviderError:
|
except JsonRpcProviderError:
|
||||||
# If the provider does not provide the implementation
|
# If the provider does not provide the implementation
|
||||||
# let's just remove the manual value
|
# let's just remove the manual value
|
||||||
return provider.maxPriorityFeePerGas
|
return provider.maxPriorityFeePerGas
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user