Skip to content

Commit

Permalink
fix(templates): set correct signer (#4021) (#4029)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7fa1dbb)

Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
mergify[bot] and julienrbrt committed Mar 18, 2024
1 parent 09f1398 commit 5a8b939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

### Fixes

- [#4021](https://github.com/ignite/cli/pull/4021) Set correct custom signer in `s list --signer <signer>`
- [#3995](https://github.com/ignite/cli/pull/3995) Fix interface check for ibc modules
- [#3953](https://github.com/ignite/cli/pull/3953) Fix apps `Stdout` is redirected to `Stderr`
- [#3863](https://github.com/ignite/cli/pull/3963) Fix breaking issue for app client API when reading app chain info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (k msgServer) Update<%= TypeName.UpperCamel %>(goCtx context.Context, msg
}

// Checks if the msg <%= MsgSigner.LowerCamel %> is the same as the current owner
if msg.<%= MsgSigner.UpperCamel %> != val.Creator {
if msg.<%= MsgSigner.UpperCamel %> != val.<%= MsgSigner.UpperCamel %> {
return nil, errorsmod.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner")
}

Expand All @@ -64,7 +64,7 @@ func (k msgServer) Delete<%= TypeName.UpperCamel %>(goCtx context.Context, msg
}

// Checks if the msg <%= MsgSigner.LowerCamel %> is the same as the current owner
if msg.<%= MsgSigner.UpperCamel %> != val.Creator {
if msg.<%= MsgSigner.UpperCamel %> != val.<%= MsgSigner.UpperCamel %> {
return nil, errorsmod.Wrap(sdkerrors.ErrUnauthorized, "incorrect owner")
}

Expand Down

0 comments on commit 5a8b939

Please sign in to comment.