Add opCodeExec to allow computation to execute code

This commit is contained in:
coffeepots 2018-09-14 16:42:15 +01:00
parent 213aebde7d
commit 7cd7a73a1f
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,8 @@ import
type
OpcodeExecutor* = proc(computation: var BaseComputation)
BaseComputation* = ref object of RootObj
# The execution computation
vmState*: BaseVMState
@ -32,6 +34,7 @@ type
opcodes*: Table[Op, proc(computation: var BaseComputation){.nimcall.}]
precompiles*: Table[string, Opcode]
gasCosts*: GasCosts # TODO - will be hidden at a lower layer
opCodeExec*: OpcodeExecutor
Error* = ref object
info*: string