From 61b381befd7dd443511ce756a4112b3c2b3d7ebd 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 f16eca046f3..4011b2a2847 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))