Skip to content

Commit

Permalink
core/vm: fix rebasing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Oct 4, 2024
1 parent 73a3a54 commit 552da3d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,13 +557,6 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
// initNewContract runs a new contract's creation code, performs checks on the
// resulting code that is to be deployed, and consumes necessary gas.
func (evm *EVM) initNewContract(contract *Contract, address common.Address, value *uint256.Int, input []byte, isInitcodeEOF bool) ([]byte, error) {
// Charge the contract creation init gas in verkle mode
if evm.chainRules.IsEIP4762 {
if !contract.UseGas(evm.AccessEvents.ContractCreateInitGas(address), evm.Config.Tracer, tracing.GasChangeWitnessContractInit) {
return nil, ErrOutOfGas
}
}

ret, err := evm.interpreter.Run(contract, input, false, contract.IsDeployment)
if err != nil {
return ret, err
Expand Down

0 comments on commit 552da3d

Please sign in to comment.