From b5bcc1bcebf1f893d5b82ce5239f26bab7f23fa2 Mon Sep 17 00:00:00 2001 From: ramtinms Date: Wed, 17 Jan 2024 17:41:22 -0800 Subject: [PATCH] update go doc --- core/vm/evm.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/vm/evm.go b/core/vm/evm.go index f271136ddf..6d770216cb 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -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 // -// the behaviour is similar to Create2 execpt we don't compute the address -// using hash and it doesn't increment the nonce for the caller +// the behaviour is similar to Create2 execpt the deployment address is provided +// 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) { return evm.create(caller, &codeAndHash{code: code}, gas, endowment, to, CREATE2) }