crypto: change the comment variable order

This commit is contained in:
haotian 2023-11-15 17:23:30 +08:00
parent 984f82629c
commit 536b93a923

View file

@ -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:])
}