Skip to content

Commit

Permalink
Merge PR cosmos#4395: Improve sig verification error message
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez authored May 23, 2019
1 parent 8076747 commit 40518cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pending/improvements/sdk/3655-Improve-signatu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#3655 Improve signature verification failure error message.
2 changes: 1 addition & 1 deletion x/auth/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func processSig(
}

if !simulate && !pubKey.VerifyBytes(signBytes, sig.Signature) {
return nil, sdk.ErrUnauthorized("signature verification failed").Result()
return nil, sdk.ErrUnauthorized("signature verification failed; verify correct account sequence and chain-id").Result()
}

if err := acc.SetSequence(acc.GetSequence() + 1); err != nil {
Expand Down

0 comments on commit 40518cb

Please sign in to comment.