put 'sstoreEvmc' behind 'when evmc_enabled'

This commit is contained in:
andri lim 2020-01-28 09:44:50 +07:00 committed by zah
parent f59dec7323
commit f850c4a37b

View File

@ -444,6 +444,7 @@ template sstoreImpl(c: Computation, slot, newValue: Uint256) =
c.vmState.mutateStateDB:
db.setStorage(c.msg.contractAddress, slot, newValue)
when evmc_enabled:
template sstoreEvmc(c: Computation, slot, newValue: Uint256) =
let
status = c.host.setStorage(c.msg.contractAddress, slot, newValue)