mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
crypto: typo
This commit is contained in:
parent
536b93a923
commit
5b3d338109
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ func CreateAddress(b common.Address, nonce uint64) common.Address {
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateAddress2 creates an ethereum address given the address bytes, a salt
|
// 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 {
|
func CreateAddress2(b common.Address, salt [32]byte, inithash []byte) common.Address {
|
||||||
return common.BytesToAddress(Keccak256([]byte{0xff}, b.Bytes(), salt[:], inithash)[12:])
|
return common.BytesToAddress(Keccak256([]byte{0xff}, b.Bytes(), salt[:], inithash)[12:])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue