From a2903dcc1143eec0f32cd2fe17c89e606af0d1c5 Mon Sep 17 00:00:00 2001 From: Shude Li Date: Tue, 30 Apr 2024 05:53:56 +0800 Subject: [PATCH] fix(templates): remove duplicate SetCmdClientContextHandler (#4112) there are two `client.SetCmdClientContextHandler(clientCtx, cmd)` --- changelog.md | 1 + .../cmd/{{binaryNamePrefix}}d/cmd/root.go.plush | 4 ---- .../app/files/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/changelog.md b/changelog.md index 618e0f1187..611cc7054c 100644 --- a/changelog.md +++ b/changelog.md @@ -62,6 +62,7 @@ - [#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 +- [#4112](https://github.com/ignite/cli/pull/4112) Remove duplicate SetCmdClientContextHandler ## [`v28.2.0`](https://github.com/ignite/cli/releases/tag/v28.2.0) diff --git a/ignite/templates/app/files-consumer/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush b/ignite/templates/app/files-consumer/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush index b54a5b5395..c32d8a41a9 100644 --- a/ignite/templates/app/files-consumer/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush +++ b/ignite/templates/app/files-consumer/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush @@ -95,10 +95,6 @@ func NewRootCmd() *cobra.Command { return err } - if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil { - return err - } - customAppTemplate, customAppConfig := initAppConfig() customCMTConfig := initCometBFTConfig() diff --git a/ignite/templates/app/files/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush b/ignite/templates/app/files/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush index 1d16f1fd02..74c3218ae1 100644 --- a/ignite/templates/app/files/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush +++ b/ignite/templates/app/files/cmd/{{binaryNamePrefix}}d/cmd/root.go.plush @@ -93,10 +93,6 @@ func NewRootCmd() *cobra.Command { return err } - if err := client.SetCmdClientContextHandler(clientCtx, cmd); err != nil { - return err - } - customAppTemplate, customAppConfig := initAppConfig() customCMTConfig := initCometBFTConfig()