Skip to content

Commit

Permalink
🎨 Fix misleading variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nnkken committed Dec 15, 2022
1 parent a532353 commit b69221d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/likenft/types/authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ func (a MintNFTAuthorization) MsgTypeURL() string {
}

func (a MintNFTAuthorization) Accept(ctx sdk.Context, msg sdk.Msg) (authz.AcceptResponse, error) {
msgUpdate, ok := msg.(*MsgMintNFT)
msgMint, ok := msg.(*MsgMintNFT)
if !ok {
return authz.AcceptResponse{}, sdkerrors.ErrInvalidType.Wrap("type mismatch")
}
if msgUpdate.ClassId != a.ClassId {
if msgMint.ClassId != a.ClassId {
return authz.AcceptResponse{}, sdkerrors.ErrUnauthorized.Wrap("class ID mismatch")
}
return authz.AcceptResponse{Accept: true}, nil
Expand Down

0 comments on commit b69221d

Please sign in to comment.