From 60b5395e635a8083c575d6160d86408e6829b9d6 Mon Sep 17 00:00:00 2001 From: Diego Campo Date: Tue, 21 Jan 2025 14:24:29 +0100 Subject: [PATCH] Sealing the sdk config --- cmd/allorad/cmd/commands.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/allorad/cmd/commands.go b/cmd/allorad/cmd/commands.go index ea2d4ee1d..5dac483c3 100644 --- a/cmd/allorad/cmd/commands.go +++ b/cmd/allorad/cmd/commands.go @@ -11,6 +11,7 @@ import ( "cosmossdk.io/log" confixcmd "cosmossdk.io/tools/confix/cmd" + "github.com/allora-network/allora-chain/app" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/debug" "github.com/cosmos/cosmos-sdk/client/flags" @@ -20,15 +21,18 @@ import ( "github.com/cosmos/cosmos-sdk/client/snapshot" "github.com/cosmos/cosmos-sdk/server" servertypes "github.com/cosmos/cosmos-sdk/server/types" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" authcmd "github.com/cosmos/cosmos-sdk/x/auth/client/cli" "github.com/cosmos/cosmos-sdk/x/crisis" genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli" - - "github.com/allora-network/allora-chain/app" ) func initRootCmd(rootCmd *cobra.Command, txConfig client.TxConfig, basicManager module.BasicManager) { + // Seal the config to prevent further modifications + cfg := sdk.GetConfig() + cfg.Seal() + rootCmd.AddCommand( genutilcli.InitCmd(basicManager, app.DefaultNodeHome), debug.Cmd(),