mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
update go doc
This commit is contained in:
parent
8377d6e503
commit
b5bcc1bceb
1 changed files with 3 additions and 2 deletions
|
|
@ -534,8 +534,9 @@ func (evm *EVM) Create2(caller ContractRef, code []byte, gas uint64, endowment *
|
||||||
|
|
||||||
// CreateAt creates a new contract using code as deployment code at the given address
|
// CreateAt creates a new contract using code as deployment code at the given address
|
||||||
//
|
//
|
||||||
// the behaviour is similar to Create2 execpt we don't compute the address
|
// the behaviour is similar to Create2 execpt the deployment address is provided
|
||||||
// using hash and it doesn't increment the nonce for the caller
|
// WARNING! this method should not be used for regular transactions sent by EOA accounts
|
||||||
|
// and is only provided for the network to deploy contacts at specific addreses.
|
||||||
func (evm *EVM) CreateAt(caller ContractRef, to common.Address, code []byte, gas uint64, endowment *big.Int, salt *uint256.Int) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) {
|
func (evm *EVM) CreateAt(caller ContractRef, to common.Address, code []byte, gas uint64, endowment *big.Int, salt *uint256.Int) (ret []byte, contractAddr common.Address, leftOverGas uint64, err error) {
|
||||||
return evm.create(caller, &codeAndHash{code: code}, gas, endowment, to, CREATE2)
|
return evm.create(caller, &codeAndHash{code: code}, gas, endowment, to, CREATE2)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue