common: more obvious error silencing

This commit is contained in:
Vincent Serpoul 2017-09-21 12:08:42 +08:00
parent cebc5a1379
commit 53f30681ac

View file

@ -226,7 +226,7 @@ func (a Address) Hash() Hash { return BytesToHash(a[:]) }
func (a Address) Hex() string {
unchecksummed := hex.EncodeToString(a[:])
sha := sha3.NewKeccak256()
sha.Write([]byte(unchecksummed))
_, _ = sha.Write([]byte(unchecksummed))
hash := sha.Sum(nil)
result := []byte(unchecksummed)