crypto: typo

This commit is contained in:
haotian 2023-11-15 17:27:02 +08:00
parent 536b93a923
commit 5b3d338109

View file

@ -110,7 +110,7 @@ func CreateAddress(b common.Address, nonce uint64) common.Address {
}
// CreateAddress2 creates an ethereum address given the address bytes, a salt
// and contract code hash.
// and inital 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:])
}