From fff049abe8b36ff0343b3134a1cf3e2cf8d4ba5c Mon Sep 17 00:00:00 2001 From: andri lim Date: Wed, 30 Jan 2019 22:13:59 +0700 Subject: [PATCH] fix path again --- tests/macro_assembler.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/macro_assembler.nim b/tests/macro_assembler.nim index 2dd4a2225..dc07fc7f0 100644 --- a/tests/macro_assembler.nim +++ b/tests/macro_assembler.nim @@ -358,7 +358,7 @@ proc assemblerImpl(boa: var Assembler, codes: NimNode): NimNode = echo result.toStrLit.strVal const - blockFile = "fixtures" / "PersistBlockTests" / "block47205.json" + blockFile = "tests" / "fixtures" / "PersistBlockTests" / "block47205.json" proc initComputation(vmState: BaseVMState, tx: Transaction, sender: EthAddress, data: seq[byte], forkOverride=none(Fork)) : BaseComputation = assert tx.isContractCreation @@ -379,8 +379,7 @@ proc initComputation(vmState: BaseVMState, tx: Transaction, sender: EthAddress, proc initDatabase*(): (Uint256, BaseChainDB) = let - appDir = getAppDir() - node = json.parseFile(appDir / blockFile) + node = json.parseFile(blockFile) blockNumber = UInt256.fromHex(node["blockNumber"].getStr()) memoryDB = newMemoryDB() state = node["state"]