Skip to content

Commit

Permalink
nit: err syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
seantking committed Jan 20, 2022
1 parent 07f12bf commit 1b2a40c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/apps/29-fee/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ func (msg MsgPayPacketFee) ValidateBasic() error {
}

// signer check
_, err := sdk.AccAddressFromBech32(msg.Signer)
if err != nil {
if _, err := sdk.AccAddressFromBech32(msg.Signer); err != nil {
return sdkerrors.Wrap(err, "failed to convert msg.Signer into sdk.AccAddress")
}

Expand Down

0 comments on commit 1b2a40c

Please sign in to comment.