fix path when load test data
This commit is contained in:
parent
58b5aa5f39
commit
c92bc7c4e4
|
@ -379,7 +379,8 @@ proc initComputation(vmState: BaseVMState, tx: Transaction, sender: EthAddress,
|
||||||
|
|
||||||
proc initDatabase*(): (Uint256, BaseChainDB) =
|
proc initDatabase*(): (Uint256, BaseChainDB) =
|
||||||
let
|
let
|
||||||
node = json.parseFile(blockFile)
|
appDir = getAppDir()
|
||||||
|
node = json.parseFile(appDir / blockFile)
|
||||||
blockNumber = UInt256.fromHex(node["blockNumber"].getStr())
|
blockNumber = UInt256.fromHex(node["blockNumber"].getStr())
|
||||||
memoryDB = newMemoryDB()
|
memoryDB = newMemoryDB()
|
||||||
state = node["state"]
|
state = node["state"]
|
||||||
|
|
Loading…
Reference in New Issue