From a91f0d5dce9e9de05b6748c6fa618643f482f2c3 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Mon, 16 Sep 2024 18:50:16 +0200 Subject: [PATCH 1/3] remove unused key to bytes method --- .../files/base/x/{{moduleName}}/types/keys.go.plush | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ignite/templates/module/create/files/base/x/{{moduleName}}/types/keys.go.plush b/ignite/templates/module/create/files/base/x/{{moduleName}}/types/keys.go.plush index 8cffd96e7d..3398f3ee49 100644 --- a/ignite/templates/module/create/files/base/x/{{moduleName}}/types/keys.go.plush +++ b/ignite/templates/module/create/files/base/x/{{moduleName}}/types/keys.go.plush @@ -15,12 +15,7 @@ const ( <%= if (isIBC) { %>// this line is used by starport scaffolding # ibc/keys/name<% } %> ) -var ( - ParamsKey = collections.NewPrefix("p_<%= moduleName %>") -) - <%= if (isIBC) { %>// this line is used by starport scaffolding # ibc/keys/port<% } %> -func KeyPrefix(p string) []byte { - return []byte(p) -} \ No newline at end of file +// ParamsKey is the prefix to retrieve all Params +var ParamsKey = collections.NewPrefix("p_<%= moduleName %>") From 002caa940f720f3a181f5445b1fe0f96f0d9e950 Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Mon, 16 Sep 2024 18:51:33 +0200 Subject: [PATCH 2/3] add changelog --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index d4050f4590..e9d8d49741 100644 --- a/changelog.md +++ b/changelog.md @@ -41,6 +41,7 @@ - [#4295](https://github.com/ignite/cli/pull/4295) Stop scaffolding `pulsar` files - [#4317](https://github.com/ignite/cli/pull/4317) Remove xchisel dependency - [#4328](https://github.com/ignite/cli/pull/4328) Send ignite bug report to sentry. Opt out the same way as for usage analytics +- [#4361](https://github.com/ignite/cli/pull/4361) Remove unused `KeyPrefix` method ### Fixes From b54e768573fac7b5afc0a9caf46b0a51db2ecddb Mon Sep 17 00:00:00 2001 From: Danilo Pantani Date: Mon, 16 Sep 2024 18:54:31 +0200 Subject: [PATCH 3/3] remove unused variable --- .../create/files/base/x/{{moduleName}}/types/genesis.go.plush | 3 --- 1 file changed, 3 deletions(-) diff --git a/ignite/templates/module/create/files/base/x/{{moduleName}}/types/genesis.go.plush b/ignite/templates/module/create/files/base/x/{{moduleName}}/types/genesis.go.plush index bb4de5a6f5..9c741f7f66 100644 --- a/ignite/templates/module/create/files/base/x/{{moduleName}}/types/genesis.go.plush +++ b/ignite/templates/module/create/files/base/x/{{moduleName}}/types/genesis.go.plush @@ -1,8 +1,5 @@ package types -// DefaultIndex is the default global index -const DefaultIndex uint64 = 1 - // DefaultGenesis returns the default genesis state func DefaultGenesis() *GenesisState { return &GenesisState{