From f22c0a36e3ff16cda127a8f6af56d4221c0d77d1 Mon Sep 17 00:00:00 2001 From: Sam Ricotta Date: Tue, 17 Dec 2024 18:48:48 +1100 Subject: [PATCH] Update cmd.go --- finality-provider/cmd/cmd.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/finality-provider/cmd/cmd.go b/finality-provider/cmd/cmd.go index 4725960c..e9f69ffd 100644 --- a/finality-provider/cmd/cmd.go +++ b/finality-provider/cmd/cmd.go @@ -8,6 +8,8 @@ import ( "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/std" + "github.com/cosmos/cosmos-sdk/x/auth/types" + incentivetypes "github.com/babylonlabs-io/babylon/x/incentive/types" "github.com/spf13/cobra" "github.com/spf13/pflag" @@ -22,13 +24,16 @@ func PersistClientCtx(ctx client.Context) func(cmd *cobra.Command, _ []string) e encCfg := params.DefaultEncodingConfig() std.RegisterInterfaces(encCfg.InterfaceRegistry) bstypes.RegisterInterfaces(encCfg.InterfaceRegistry) + incentivetypes.RegisterInterfaces(encCfg.InterfaceRegistry) + types.RegisterInterfaces(encCfg.InterfaceRegistry) ctx = ctx. WithCodec(encCfg.Codec). WithInterfaceRegistry(encCfg.InterfaceRegistry). WithTxConfig(encCfg.TxConfig). WithLegacyAmino(encCfg.Amino). - WithInput(os.Stdin) + WithInput(os.Stdin). + WithAccountRetriever(types.AccountRetriever{}) // set the default command outputs cmd.SetOut(cmd.OutOrStdout())