mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/vm: fix post init metering
This commit is contained in:
parent
ac0f688edd
commit
90f926cfce
1 changed files with 2 additions and 1 deletions
|
|
@ -244,7 +244,8 @@ func (in *InterpreterEWASM) PostContractCreation(code []byte) ([]byte, error) {
|
|||
return nil, errExecutionReverted
|
||||
}
|
||||
if in.metering {
|
||||
code, _, err := sentinel(in, code)
|
||||
meteredCode, _, err := sentinel(in, code)
|
||||
code = meteredCode
|
||||
if len(code) < 5 || err != nil {
|
||||
return nil, fmt.Errorf("Error metering the generated contract code, err=%v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue