mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
crypto: change the comment variable order
This commit is contained in:
parent
984f82629c
commit
536b93a923
1 changed files with 2 additions and 2 deletions
|
|
@ -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:])
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue