From 726349d02b51eec89a207f91d4da0eacbe3c13aa Mon Sep 17 00:00:00 2001 From: Albert Le Batteux Date: Wed, 29 Nov 2023 11:19:07 +0000 Subject: [PATCH] fix(pkg/gnoland): store skipFailingGenesisTxs in cfg (#1395) When the flag `--skip-failing-genesis-txs=true` was set, we still have a panic because the flag wasn't send for the config
Contributors' checklist... - [ ] 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).
--- gno.land/pkg/gnoland/app.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gno.land/pkg/gnoland/app.go b/gno.land/pkg/gnoland/app.go index a1e917dd8d1..412930e51dd 100644 --- a/gno.land/pkg/gnoland/app.go +++ b/gno.land/pkg/gnoland/app.go @@ -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"))