Skip to content

Commit

Permalink
Merge PR #3358: Bech32-ify address in error message return by ante ha…
Browse files Browse the repository at this point in the history
…ndler

Closes: #3356
  • Loading branch information
alessio authored and cwgoes committed Jan 23, 2019
1 parent b5e245f commit e017941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion x/auth/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit e017941

Please sign in to comment.