diff --git a/crypto/crypto.go b/crypto/crypto.go index 2492165d38..693e6b7b14 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -109,8 +109,8 @@ func CreateAddress(b common.Address, nonce uint64) common.Address { return common.BytesToAddress(Keccak256(data)[12:]) } -// CreateAddress2 creates an ethereum address given the address bytes, initial -// contract code hash and a salt. +// CreateAddress2 creates an ethereum address given the address bytes, a salt +// and contract code hash. func CreateAddress2(b common.Address, salt [32]byte, inithash []byte) common.Address { return common.BytesToAddress(Keccak256([]byte{0xff}, b.Bytes(), salt[:], inithash)[12:]) }