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) =
|
||||
let
|
||||
node = json.parseFile(blockFile)
|
||||
appDir = getAppDir()
|
||||
node = json.parseFile(appDir / blockFile)
|
||||
blockNumber = UInt256.fromHex(node["blockNumber"].getStr())
|
||||
memoryDB = newMemoryDB()
|
||||
state = node["state"]
|
||||
|
|
Loading…
Reference in New Issue