Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Jun 7, 2024
1 parent 1170a47 commit e9b83b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions contribs/gnodev/cmd/gnodev/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ type devCfg struct {
serverMode bool
}

func (cfg *devCfg) validateConfigFlags() error {
if (cfg.balancesFile != "" || cfg.txsFile != "") && cfg.genesisFile != "" {
return errors.New("cannot specify `balances-file` or `txs-file` along with `genesis-file`")
}

return nil
}

var defaultDevOptions = &devCfg{
chainId: "dev",
maxGas: 10_000_000_000,
Expand Down Expand Up @@ -220,6 +212,14 @@ func (c *devCfg) RegisterFlags(fs *flag.FlagSet) {
)
}

func (c *devCfg) validateConfigFlags() error {
if (c.balancesFile != "" || c.txsFile != "") && c.genesisFile != "" {
return errors.New("cannot specify `balances-file` or `txs-file` along with `genesis-file`")
}

return nil
}

func execDev(cfg *devCfg, args []string, io commands.IO) (err error) {
ctx, cancel := context.WithCancelCause(context.Background())
defer cancel(nil)
Expand Down
1 change: 0 additions & 1 deletion contribs/gnodev/cmd/gnodev/setup_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func setupDevNode(
if err != nil {
return nil, fmt.Errorf("unable to load transactions: %w", err)
}

} else if devCfg.genesisFile != "" { // Load genesis file
state, err := extractAppStateFromGenesisFile(devCfg.genesisFile)
if err != nil {
Expand Down

0 comments on commit e9b83b0

Please sign in to comment.