From 1424fdce66caaea2c8bfee3e29da32e66ed34ac9 Mon Sep 17 00:00:00 2001 From: Arran Schlosberg Date: Mon, 12 Aug 2024 17:38:28 +0100 Subject: [PATCH] doc: clarify `evm.initNewContract()` comment --- core/vm/evm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vm/evm.go b/core/vm/evm.go index 0ced6bcb1b..4ae642e7f8 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -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 {