Skip to content

Commit

Permalink
chore: remove unused KeyPrefix method (#4361)
Browse files Browse the repository at this point in the history
* remove unused key to bytes method

* add changelog

* remove unused variable
  • Loading branch information
Pantani authored Sep 16, 2024
1 parent 0adabfd commit 8f43ae4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
// ParamsKey is the prefix to retrieve all Params
var ParamsKey = collections.NewPrefix("p_<%= moduleName %>")

0 comments on commit 8f43ae4

Please sign in to comment.