From 3a9c305e4ae810f58b09ba085bbd29351e68fd39 Mon Sep 17 00:00:00 2001 From: derrandz Date: Thu, 26 Jan 2023 12:07:21 +0100 Subject: [PATCH] Revert "chore(swamp): replace cosmos prefix with celestia in swamp tests (#1583)" This reverts commit f3b334ffd491024aacadc196f8ae078995855894. --- cmd/celestia/main.go | 10 ++++++++++ core/config.go | 16 ---------------- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 core/config.go diff --git a/cmd/celestia/main.go b/cmd/celestia/main.go index 660e6e6c31..81baf23b34 100644 --- a/cmd/celestia/main.go +++ b/cmd/celestia/main.go @@ -6,10 +6,20 @@ import ( "os" "time" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/spf13/cobra" + + "github.com/celestiaorg/celestia-app/app" ) func init() { + // This is necessary to ensure that the account addresses are correctly prefixed + // as in the celestia application. + cfg := sdk.GetConfig() + cfg.SetBech32PrefixForAccount(app.Bech32PrefixAccAddr, app.Bech32PrefixAccPub) + cfg.SetBech32PrefixForValidator(app.Bech32PrefixValAddr, app.Bech32PrefixValPub) + cfg.Seal() + rootCmd.AddCommand( bridgeCmd, lightCmd, diff --git a/core/config.go b/core/config.go deleted file mode 100644 index 9d9b82630c..0000000000 --- a/core/config.go +++ /dev/null @@ -1,16 +0,0 @@ -package core - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" - - "github.com/celestiaorg/celestia-app/app" -) - -func init() { - // This is necessary to ensure that the account addresses are correctly prefixed - // as in the celestia application. - cfg := sdk.GetConfig() - cfg.SetBech32PrefixForAccount(app.Bech32PrefixAccAddr, app.Bech32PrefixAccPub) - cfg.SetBech32PrefixForValidator(app.Bech32PrefixValAddr, app.Bech32PrefixValPub) - cfg.Seal() -}