Skip to content

Commit

Permalink
core: fix comment about recipient for contract creation (#26349)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ralexstokes committed Dec 13, 2022
1 parent 262bd38 commit 250a80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var emptyCodeHash = crypto.Keccak256Hash(nil)
//
// 1. Nonce handling
// 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
//
// == If contract creation ==
Expand Down

0 comments on commit 250a80a

Please sign in to comment.