Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Aug 9, 2024
1 parent d74d477 commit c2177f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ignite/cmd/scaffold_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ about Cosmos SDK on https://docs.cosmos.network
c.Flags().String(flagProtoDir, defaults.ProtoDir, "chain proto directory")

// consumer scaffolding have been migrated to an ignite app
c.Flags().MarkDeprecated("consumer", "use 'ignite consumer' app instead")
_ = c.Flags().MarkDeprecated("consumer", "use 'ignite consumer' app instead")

return c
}
Expand Down
13 changes: 7 additions & 6 deletions ignite/services/chain/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,17 @@ func (c *Chain) InitAccounts(ctx context.Context, cfg *chainconfig.Config) error
if len(cfg.Validators) == 0 {
return nil
}

if cfg.IsConsumerChain() {
// we skip early if the chain is a consumer chain
return nil
} else {
// Sovereign chain writes validators in gentxs.
_, err := c.IssueGentx(ctx, createValidatorFromConfig(cfg))
if err != nil {
return err
}
}

// Sovereign chain writes validators in gentxs.
if _, err := c.IssueGentx(ctx, createValidatorFromConfig(cfg)); err != nil {
return err
}

return nil
}

Expand Down

0 comments on commit c2177f0

Please sign in to comment.