Skip to content

Commit

Permalink
Revert "chore(swamp): replace cosmos prefix with celestia in swamp te…
Browse files Browse the repository at this point in the history
…sts (celestiaorg#1583)"

This reverts commit f3b334f.
  • Loading branch information
derrandz committed Jan 26, 2023
1 parent e8c84ca commit 3a9c305
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
10 changes: 10 additions & 0 deletions cmd/celestia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 0 additions & 16 deletions core/config.go

This file was deleted.

0 comments on commit 3a9c305

Please sign in to comment.