mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/vm: fix build
This commit is contained in:
parent
90f926cfce
commit
634755bf63
1 changed files with 2 additions and 0 deletions
|
|
@ -243,6 +243,8 @@ func (in *InterpreterEWASM) PostContractCreation(code []byte) ([]byte, error) {
|
|||
if in.terminationType == TerminateRevert {
|
||||
return nil, errExecutionReverted
|
||||
}
|
||||
|
||||
if in.CanRun(code) {
|
||||
if in.metering {
|
||||
meteredCode, _, err := sentinel(in, code)
|
||||
code = meteredCode
|
||||
|
|
|
|||
Loading…
Reference in a new issue