Skip to content

Commit

Permalink
fix: clear display and put address.String() (#10541)
Browse files Browse the repository at this point in the history
* clear display and put address.String()

* second error
  • Loading branch information
tac0turtle committed Nov 15, 2021
1 parent 4d1183b commit e60ef28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,11 @@ func (ks keystore) Delete(uid string) error {
func (ks keystore) KeyByAddress(address sdk.Address) (*Record, error) {
ik, err := ks.db.Get(addrHexKeyAsString(address))
if err != nil {
return nil, wrapKeyNotFound(err, fmt.Sprint("key with address", address, "not found"))
return nil, wrapKeyNotFound(err, fmt.Sprint("key with address ", address.String(), "not found"))
}

if len(ik.Data) == 0 {
return nil, wrapKeyNotFound(err, fmt.Sprint("key with address", address, "not found"))
return nil, wrapKeyNotFound(err, fmt.Sprint("key with address ", address.String(), "not found"))
}

return ks.Key(string(ik.Data))
Expand Down

0 comments on commit e60ef28

Please sign in to comment.