evmc_enabled compile time flags

This commit is contained in:
andri lim 2020-01-16 23:22:43 +07:00 committed by zah
parent 295d2c180b
commit 64f0e59487
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@ logScope:
topics = "vm computation"
const
evmc_enabled* {.booldefine.} = true
evmc_enabled* = defined(evmc_enabled)
template getCoinbase*(c: Computation): EthAddress =
when evmc_enabled:

View File

@ -59,7 +59,8 @@ type
Computation* = ref object
# The execution computation
vmState*: BaseVMState
host*: HostContext
when defined(evmc_enabled):
host*: HostContext
msg*: Message
memory*: Memory
stack*: Stack