Skip to content

Commit 157f6d0

Browse files
committed
fix(templates): set correct signer (#4021)
1 parent d059050 commit 157f6d0

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
@@ -25,6 +25,7 @@
2525

2626
### Fixes
2727

28+
- [#4021](https://github.com/ignite/cli/pull/4021) Set correct custom signer in `s list --signer <signer>`
2829
- [#3995](https://github.com/ignite/cli/pull/3995) Fix interface check for ibc modules
2930
- [#3953](https://github.com/ignite/cli/pull/3953) Fix apps `Stdout` is redirected to `Stderr`
3031
- [#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)