Skip to content

Commit

Permalink
chore(swamp): replace cosmos prefix with celestia in swamp tests (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs authored and renaynay committed Feb 1, 2023
1 parent cdedc05 commit 91219a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cmd/celestia/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,10 @@ 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: 16 additions & 0 deletions core/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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()
}

0 comments on commit 91219a7

Please sign in to comment.