Skip to content

Commit eac5ac1

Browse files
julienrbrtmergify[bot]
authored andcommitted
fix(templates): set correct signer (#4021)
(cherry picked from commit 7fa1dbb)
1 parent 09f1398 commit eac5ac1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
### Fixes
1818

19+
- [#4021](https://github.com/ignite/cli/pull/4021) Set correct custom signer in `s list --signer <signer>`
1920
- [#3995](https://github.com/ignite/cli/pull/3995) Fix interface check for ibc modules
2021
- [#3953](https://github.com/ignite/cli/pull/3953) Fix apps `Stdout` is redirected to `Stderr`
2122
- [#3863](https://github.com/ignite/cli/pull/3963) Fix breaking issue for app client API when reading app chain info

Diff for: ignite/templates/typed/list/files/messages/x/{{moduleName}}/keeper/msg_server_{{typeName}}.go.plush

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (k msgServer) Update<%= TypeName.UpperCamel %>(goCtx context.Context, msg
4545
}
4646

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

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

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

0 commit comments

Comments
 (0)