use status abstraction instead of libstatus directly

This commit is contained in:
Iuri Matias 2020-05-13 19:10:27 -04:00
parent 18db5dc145
commit bb1190cbba
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import libstatus import core as status
import json import json
import utils import utils
import httpclient, json import httpclient, json
@ -23,7 +23,7 @@ proc getBalance*(address: string): string =
"latest" "latest"
] ]
} }
parseJson($libstatus.callPrivateRPC($payload))["result"].str parseJson(status.callPrivateRPC($payload))["result"].str
proc hex2Eth*(input: string): string = proc hex2Eth*(input: string): string =
var value = fromHex(Stuint[256], input) var value = fromHex(Stuint[256], input)