From c92bc7c4e4cc4e7654be273f4c742b8ec8f70f52 Mon Sep 17 00:00:00 2001 From: andri lim Date: Wed, 30 Jan 2019 20:00:32 +0700 Subject: [PATCH] fix path when load test data --- tests/macro_assembler.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/macro_assembler.nim b/tests/macro_assembler.nim index ec88b64f6..2dd4a2225 100644 --- a/tests/macro_assembler.nim +++ b/tests/macro_assembler.nim @@ -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"]