mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
common: more obvious error silencing
This commit is contained in:
parent
88e41c38dc
commit
c1d2f12431
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ func (a Address) Hash() Hash { return BytesToHash(a[:]) }
|
||||||
func (a Address) Hex() string {
|
func (a Address) Hex() string {
|
||||||
unchecksummed := hex.EncodeToString(a[:])
|
unchecksummed := hex.EncodeToString(a[:])
|
||||||
sha := sha3.NewKeccak256()
|
sha := sha3.NewKeccak256()
|
||||||
sha.Write([]byte(unchecksummed))
|
_, _ = sha.Write([]byte(unchecksummed))
|
||||||
hash := sha.Sum(nil)
|
hash := sha.Sum(nil)
|
||||||
|
|
||||||
result := []byte(unchecksummed)
|
result := []byte(unchecksummed)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue