core/vm: fix build

This commit is contained in:
Guillaume Ballet 2018-11-29 13:52:13 +01:00
parent 90f926cfce
commit 634755bf63

View file

@ -243,6 +243,8 @@ func (in *InterpreterEWASM) PostContractCreation(code []byte) ([]byte, error) {
if in.terminationType == TerminateRevert { if in.terminationType == TerminateRevert {
return nil, errExecutionReverted return nil, errExecutionReverted
} }
if in.CanRun(code) {
if in.metering { if in.metering {
meteredCode, _, err := sentinel(in, code) meteredCode, _, err := sentinel(in, code)
code = meteredCode code = meteredCode