Skip to content

Commit

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

* second error
  • Loading branch information
tac0turtle authored and blewater committed Dec 8, 2021
1 parent 464388d commit 61b381b
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 61b381b

Please sign in to comment.