From 6783accba792393f4797c421f31139f910baff2e Mon Sep 17 00:00:00 2001 From: ltacker Date: Thu, 8 Dec 2022 16:16:05 -0500 Subject: [PATCH] fix keyring backend genesis show --- ignite/cmd/network_chain_show_genesis.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ignite/cmd/network_chain_show_genesis.go b/ignite/cmd/network_chain_show_genesis.go index 5baba69ee0..39241d06c2 100644 --- a/ignite/cmd/network_chain_show_genesis.go +++ b/ignite/cmd/network_chain_show_genesis.go @@ -6,6 +6,7 @@ import ( "github.com/spf13/cobra" + "github.com/ignite/cli/ignite/pkg/chaincmd" "github.com/ignite/cli/ignite/pkg/cliui" "github.com/ignite/cli/ignite/pkg/cliui/icons" "github.com/ignite/cli/ignite/pkg/xos" @@ -51,7 +52,11 @@ func networkChainShowGenesisHandler(cmd *cobra.Command, args []string) error { return err } - c, err := nb.Chain(networkchain.SourceLaunch(chainLaunch)) + networkOptions := []networkchain.Option{ + networkchain.WithKeyringBackend(chaincmd.KeyringBackendTest), + } + + c, err := nb.Chain(networkchain.SourceLaunch(chainLaunch), networkOptions...) if err != nil { return err }