Merge PR #3358: Bech32-ify address in error message return by ante handler

Closes: #3356
This commit is contained in:
Alessio Treglia 2019-01-23 13:26:21 +00:00 committed by Christopher Goes
parent b5e245fee3
commit e01794130a
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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()
}
}