fix path when load test data

This commit is contained in:
andri lim 2019-01-30 20:00:32 +07:00 committed by zah
parent 58b5aa5f39
commit c92bc7c4e4
1 changed files with 2 additions and 1 deletions

View File

@ -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"]