Merge pull request #27 from sei-protocol/create-with-addr

create with address
This commit is contained in:
codchen 2024-05-14 13:00:29 +08:00 committed by GitHub
commit a98e562ef1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -526,6 +526,10 @@ func (evm *EVM) Create2(caller ContractRef, code []byte, gas uint64, endowment *
return evm.create(caller, codeAndHash, gas, endowment, contractAddr, CREATE2)
}
func (evm *EVM) CreateWithAddress(caller ContractRef, code []byte, gas uint64, value *big.Int, address common.Address) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) {
return evm.create(caller, &codeAndHash{code: code}, gas, value, address, CREATE)
}
// ChainConfig returns the environment's chain configuration
func (evm *EVM) ChainConfig() *params.ChainConfig { return evm.chainConfig }