From 250a80a50e7a1326e35b672b380f9a7cd301f282 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Tue, 13 Dec 2022 01:33:40 -0700 Subject: [PATCH] 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. --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index a6cf3f7c3..c49aba708 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -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 ==