Add opcode executor proc to computation

This commit is contained in:
coffeepots 2018-09-14 16:47:40 +01:00
parent 7cd7a73a1f
commit af76d209a6
1 changed files with 3 additions and 1 deletions

View File

@ -226,7 +226,9 @@ proc executeOpcodes*(computation: var BaseComputation) =
let fork = computation.vmState.blockHeader.blockNumber.toFork
try:
case fork
of FkFrontier: computation.frontierVM()
of FkFrontier:
computation.opCodeExec = frontierVM
computation.frontierVM()
else:
raise newException(ValueError, "not implemented fork: " & $fork)
except VMError: