Fixes isSyncing issue where object is evaluated as false (#68)
This commit is contained in:
parent
4a57089ed2
commit
942fe034fc
|
@ -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*(
|
||||
|
|
Loading…
Reference in New Issue