use status abstraction instead of libstatus directly
This commit is contained in:
parent
18db5dc145
commit
bb1190cbba
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue