forked from cerc-io/plugeth
common: remove address.Hash footgun (#28228)
This commit is contained in:
parent
c5ff839fb2
commit
1f9d672df1
@ -239,9 +239,6 @@ func (a Address) Cmp(other Address) int {
|
|||||||
// Bytes gets the string representation of the underlying address.
|
// Bytes gets the string representation of the underlying address.
|
||||||
func (a Address) Bytes() []byte { return a[:] }
|
func (a Address) Bytes() []byte { return a[:] }
|
||||||
|
|
||||||
// Hash converts an address to a hash by left-padding it with zeros.
|
|
||||||
func (a Address) Hash() Hash { return BytesToHash(a[:]) }
|
|
||||||
|
|
||||||
// Big converts an address to a big integer.
|
// Big converts an address to a big integer.
|
||||||
func (a Address) Big() *big.Int { return new(big.Int).SetBytes(a[:]) }
|
func (a Address) Big() *big.Int { return new(big.Int).SetBytes(a[:]) }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user