From e60ef28290578a478f44d738bce7fb9169d4d7c4 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 15 Nov 2021 12:38:35 +0100 Subject: [PATCH] fix: clear display and put address.String() (#10541) * clear display and put address.String() * second error --- crypto/keyring/keyring.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/keyring/keyring.go b/crypto/keyring/keyring.go index f16eca046f37..4011b2a2847e 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -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))