Skip to content

Commit

Permalink
fix: prevent scaffolding of default module called "ibc" (#3706)
Browse files Browse the repository at this point in the history
* Prevent scaffolding of default module called "ibc"

* add changelog

---------

Co-authored-by: Pantani <Pantani>
  • Loading branch information
Pantani authored Oct 19, 2023
1 parent 1b188d9 commit f6d52e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

### Fixes

- [#3386](https://github.com/ignite/cli/issues/3386) Prevent scaffolding of default module called "ibc"
- [#3592](https://github.com/ignite/cli/pull/3592) Fix `pkg/protoanalysis` to support HTTP rule parameter arguments
- [#3598](https://github.com/ignite/cli/pull/3598) Fix consensus param keeper constructor key in `app.go`
- [#3610](https://github.com/ignite/cli/pull/3610) Fix overflow issue of cosmos faucet in `pkg/cosmosfaucet/transfer.go` and `pkg/cosmosfaucet/cosmosfaucet.go`
Expand Down
4 changes: 4 additions & 0 deletions ignite/services/scaffolder/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ func generate(
Params: paramsFields,
IsIBC: false,
}
// Check if the module name is valid
if err := checkModuleName(opts.AppPath, opts.ModuleName); err != nil {
return err
}
g, err = modulecreate.NewGenerator(opts)
if err != nil {
return err
Expand Down

0 comments on commit f6d52e5

Please sign in to comment.