From e01794130a6bca55a55a76e62f1c449969454cf7 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Wed, 23 Jan 2019 13:26:21 +0000 Subject: [PATCH] Merge PR #3358: Bech32-ify address in error message return by ante handler Closes: #3356 --- PENDING.md | 1 + x/auth/ante.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PENDING.md b/PENDING.md index 899c501a9a..fdc547575a 100644 --- a/PENDING.md +++ b/PENDING.md @@ -87,6 +87,7 @@ FEATURES the ante handler. * [\#3179](https://github.com/cosmos/cosmos-sdk/pull/3179) New CodeNoSignatures error code. * \#3319 [x/distribution] Queriers for all distribution state worth querying; distribution query commands + * [\#3356](https://github.com/cosmos/cosmos-sdk/issues/3356) [x/auth] bech32-ify accounts address in error message. * Tendermint diff --git a/x/auth/ante.go b/x/auth/ante.go index 453cd2e8b4..f82b7fc650 100644 --- a/x/auth/ante.go +++ b/x/auth/ante.go @@ -211,7 +211,7 @@ func ProcessPubKey(acc Account, sig StdSignature, simulate bool) (crypto.PubKey, if !bytes.Equal(pubKey.Address(), acc.GetAddress()) { return nil, sdk.ErrInvalidPubKey( - fmt.Sprintf("PubKey does not match Signer address %v", acc.GetAddress())).Result() + fmt.Sprintf("PubKey does not match Signer address %s", acc.GetAddress())).Result() } }