mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-05 08:45:27 +00:00
fix path again
This commit is contained in:
parent
c92bc7c4e4
commit
fff049abe8
@ -358,7 +358,7 @@ proc assemblerImpl(boa: var Assembler, codes: NimNode): NimNode =
|
|||||||
echo result.toStrLit.strVal
|
echo result.toStrLit.strVal
|
||||||
|
|
||||||
const
|
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 =
|
proc initComputation(vmState: BaseVMState, tx: Transaction, sender: EthAddress, data: seq[byte], forkOverride=none(Fork)) : BaseComputation =
|
||||||
assert tx.isContractCreation
|
assert tx.isContractCreation
|
||||||
@ -379,8 +379,7 @@ proc initComputation(vmState: BaseVMState, tx: Transaction, sender: EthAddress,
|
|||||||
|
|
||||||
proc initDatabase*(): (Uint256, BaseChainDB) =
|
proc initDatabase*(): (Uint256, BaseChainDB) =
|
||||||
let
|
let
|
||||||
appDir = getAppDir()
|
node = json.parseFile(blockFile)
|
||||||
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…
x
Reference in New Issue
Block a user