mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-06 15:08:39 +00:00
core: fix comment about recipient for contract creation (#26349)
A comment suggests that contract creation happens if the recipient of a call is 0x00..00 ("zero address") but in fact the sender must be nil. The zero address is a regular valid address that is commonly used as a "burn" address.
This commit is contained in:
parent
262bd38fce
commit
250a80a50e
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ var emptyCodeHash = crypto.Keccak256Hash(nil)
|
||||||
//
|
//
|
||||||
// 1. Nonce handling
|
// 1. Nonce handling
|
||||||
// 2. Pre pay gas
|
// 2. Pre pay gas
|
||||||
// 3. Create a new state object if the recipient is \0*32
|
// 3. Create a new state object if the recipient is nil
|
||||||
// 4. Value transfer
|
// 4. Value transfer
|
||||||
//
|
//
|
||||||
// == If contract creation ==
|
// == If contract creation ==
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue