mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
doc: clarify evm.initNewContract() comment
This commit is contained in:
parent
344a35d4e5
commit
1424fdce66
1 changed files with 2 additions and 2 deletions
|
|
@ -537,8 +537,8 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
|
|||
return ret, address, contract.Gas, err
|
||||
}
|
||||
|
||||
// initNewContract perform initialization checks and actions on code for a newly
|
||||
// create()d contract.
|
||||
// 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) ([]byte, error) {
|
||||
ret, err := evm.interpreter.Run(contract, nil, false)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue