Catch JsonRpcProviderError instead of ProviderError

This commit is contained in:
Arnaud 2025-05-20 15:51:20 +02:00
parent 228d18efcc
commit 2336db0ffb
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

View File

@ -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