diff --git a/ethers/providers/jsonrpc.nim b/ethers/providers/jsonrpc.nim index 7ca644a..9419224 100644 --- a/ethers/providers/jsonrpc.nim +++ b/ethers/providers/jsonrpc.nim @@ -36,6 +36,10 @@ template convertError(body) = body except JsonRpcError as error: raiseProviderError(error.msg) + # Catch all ValueErrors for now, at least until JsonRpcError is actually + # raised. PR created: https://github.com/status-im/nim-json-rpc/pull/151 + except ValueError as error: + raiseProviderError(error.msg) # Provider