Skip to content

Commit

Permalink
remove the unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqjasoria committed Sep 5, 2024
1 parent 632bc9d commit c5ed85c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/state/access_witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (aw *AccessWitness) TouchAndChargeValueTransfer(callerAddr, targetAddr []by

// TouchAndChargeContractCreateInit charges access costs to initiate
// a contract creation
func (aw *AccessWitness) TouchAndChargeContractCreateInit(addr []byte, createSendsValue bool) uint64 {
func (aw *AccessWitness) TouchAndChargeContractCreateInit(addr []byte) uint64 {
var gas uint64
gas += aw.touchAddressAndChargeGas(addr, zeroTreeIndex, utils.BasicDataLeafKey, true)
return gas
Expand Down
2 changes: 1 addition & 1 deletion core/vm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,

// Charge the contract creation init gas in verkle mode
if evm.chainRules.IsEIP4762 {
statelessGas := evm.Accesses.TouchAndChargeContractCreateInit(address.Bytes(), value.Sign() != 0)
statelessGas := evm.Accesses.TouchAndChargeContractCreateInit(address.Bytes())
if statelessGas > gas {
return nil, common.Address{}, gas, ErrOutOfGas
}
Expand Down

0 comments on commit c5ed85c

Please sign in to comment.