Precompiles now executed if called from vm_state_transactions

This commit is contained in:
coffeepots 2018-10-12 16:16:14 +01:00
parent 4ca4a859ad
commit 6e4616e443
1 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import
chronicles,
./interpreter/[opcode_values, opcodes_impl, vm_forks, gas_costs, gas_meter, utils/macros_gen_opcodes],
./code_stream,
../vm_types, ../errors,
../vm_types, ../errors, precompiles,
./stack, ./computation, terminal # Those are only needed for logging
func invalidInstruction*(computation: var BaseComputation) {.inline.} =
@ -220,7 +220,8 @@ macro genFrontierDispatch(computation: BaseComputation): untyped =
result = opTableToCaseStmt(FrontierOpDispatch, computation)
proc frontierVM(computation: var BaseComputation) =
genFrontierDispatch(computation)
if not computation.execPrecompiles:
genFrontierDispatch(computation)
proc updateOpcodeExec*(computation: var BaseComputation, fork: Fork) =
case fork