Skip to content

Commit 59ab87f

Browse files
mergify[bot]islishudejulienrbrt
authored
fix(templates): remove duplicate SetCmdClientContextHandler (backport #4112) (#4116)
* fix(templates): remove duplicate SetCmdClientContextHandler (#4112) there are two `client.SetCmdClientContextHandler(clientCtx, cmd)` (cherry picked from commit a2903dc) * Update changelog.md --------- Co-authored-by: Shude Li <[email protected]> Co-authored-by: Julien Robert <[email protected]>
1 parent ddf17ce commit 59ab87f

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

Diff for: changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [#4062](https://github.com/ignite/cli/pull/4062) Avoid nil `scopedKeeper` in `TransmitXXX` functions
1818
- [#3969](https://github.com/ignite/cli/pull/3969) Get first config validator using a getter to avoid index errors
1919
- [#4086](https://github.com/ignite/cli/pull/4086) Retry to get the IBC balance if it fails the first time
20+
- [#4112](https://github.com/ignite/cli/pull/4112) Remove duplicate SetCmdClientContextHandler
2021

2122
## [`v28.3.0`](https://github.com/ignite/cli/releases/tag/v28.3.0)
2223

Diff for: ignite/templates/app/files-consumer/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush

-4
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ func NewRootCmd() *cobra.Command {
9595
return err
9696
}
9797

98-
if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
99-
return err
100-
}
101-
10298
customAppTemplate, customAppConfig := initAppConfig()
10399
customCMTConfig := initCometBFTConfig()
104100

Diff for: ignite/templates/app/files/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush

-4
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ func NewRootCmd() *cobra.Command {
9393
return err
9494
}
9595

96-
if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil {
97-
return err
98-
}
99-
10096
customAppTemplate, customAppConfig := initAppConfig()
10197
customCMTConfig := initCometBFTConfig()
10298

0 commit comments

Comments
 (0)