diff --git a/ethers/providers/jsonrpc.nim b/ethers/providers/jsonrpc.nim index 95cca3f..76380b6 100644 --- a/ethers/providers/jsonrpc.nim +++ b/ethers/providers/jsonrpc.nim @@ -270,6 +270,8 @@ method unsubscribe*( 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*(