Skip to content

Commit

Permalink
fix(pkg/gnoland): store skipFailingGenesisTxs in cfg (#1395)
Browse files Browse the repository at this point in the history
When the flag `--skip-failing-genesis-txs=true` was set, we still have a
panic because the flag wasn't send for the config

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
  • Loading branch information
albttx committed Nov 29, 2023
1 parent aaeb808 commit 726349d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gno.land/pkg/gnoland/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func NewApp(dataRootDir string, skipFailingGenesisTxs bool, logger log.Logger, m
var err error

cfg := NewAppOptions()
cfg.SkipFailingGenesisTxs = skipFailingGenesisTxs

// Get main DB.
cfg.DB, err = dbm.NewDB("gnolang", dbm.GoLevelDBBackend, filepath.Join(dataRootDir, "data"))
Expand Down

0 comments on commit 726349d

Please sign in to comment.