Fix JSON VMtests compile-time errors (#25)
* Fix imports * Fix Ethtime in fixtures following https://github.com/nim-lang/Nim/commit/f6df2d9956a79eda0486391
This commit is contained in:
parent
2d34f1453c
commit
8f95c86944
|
@ -6,10 +6,13 @@
|
|||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import
|
||||
unittest, strformat, strutils, sequtils, tables, stint, json,
|
||||
test_helpers, constants, errors, logging, ospaths,
|
||||
chain, vm_state, computation, opcode, types, opcode_table, utils / [header, padding], vm / [gas_meter, message, code_stream, stack], vm / forks / frontier / vm, db / [db_chain, state_db], db / backends / memory_backend
|
||||
|
||||
unittest, strformat, strutils, sequtils, tables, stint, json, ospaths, times,
|
||||
./test_helpers,
|
||||
../src/[constants, errors, logging],
|
||||
../src/[chain, vm_state, computation, opcode, types, opcode_table],
|
||||
../src/utils/[header, padding],
|
||||
../src/vm/[gas_meter, message, code_stream, stack],
|
||||
../src/vm/forks/frontier/vm, ../src/db/[db_chain, state_db, backends/memory_backend]
|
||||
|
||||
proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus)
|
||||
|
||||
|
@ -26,8 +29,8 @@ proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) =
|
|||
coinbase: fixture{"env"}{"currentCoinbase"}.getStr,
|
||||
difficulty: fixture{"env"}{"currentDifficulty"}.getHexadecimalInt.u256,
|
||||
blockNumber: fixture{"env"}{"currentNumber"}.getHexadecimalInt.u256,
|
||||
gasLimit: fixture{"env"}{"currentGasLimit"}.getHexadecimalInt.u256,
|
||||
timestamp: fixture{"env"}{"currentTimestamp"}.getHexadecimalInt)
|
||||
# gasLimit: fixture{"env"}{"currentGasLimit"}.getHexadecimalInt.u256,
|
||||
timestamp: fixture{"env"}{"currentTimestamp"}.getHexadecimalInt.int64.fromUnix)
|
||||
|
||||
var code = ""
|
||||
vm.state.db(readOnly=false):
|
||||
|
|
Loading…
Reference in New Issue