diff --git a/ethers/providers/jsonrpc.nim b/ethers/providers/jsonrpc.nim index d5f7e8c..63cabdd 100644 --- a/ethers/providers/jsonrpc.nim +++ b/ethers/providers/jsonrpc.nim @@ -224,6 +224,8 @@ method unsubscribe(subscription: JsonRpcSubscription) {.async.} = method isSyncing*(provider: JsonRpcProvider): Future[bool] {.async.} = let response = await provider.send("eth_syncing") + if response.kind == JsonNodeKind.JObject: + return true return response.getBool() method close*(provider: JsonRpcProvider) {.async.} =