Skip to content

Commit

Permalink
fix: remove redundant setconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed Jan 8, 2024
1 parent f2be59d commit ee16bcb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/apptesting/test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ var (
ConsNodePubKeyPrefix = AccountAddressPrefix + "valconspub"
)

func SetConfig() {
config := sdk.GetConfig()
config.SetBech32PrefixForAccount(AccountAddressPrefix, AccountPubKeyPrefix)
config.SetBech32PrefixForValidator(ValidatorAddressPrefix, ValidatorPubKeyPrefix)
config.SetBech32PrefixForConsensusNode(ConsNodeAddressPrefix, ConsNodePubKeyPrefix)
sdk.DefaultPowerReduction = DefaultPowerReduction
}

type KeeperTestHelper struct {
suite.Suite

Expand Down Expand Up @@ -105,7 +97,6 @@ var DefaultConsensusParams = &abci.ConsensusParams{
}

func SetupApp(t *testing.T) *app.App {
SetConfig()
t.Helper()
privVal := NewPV()
pubKey, err := privVal.GetPubKey()
Expand Down

0 comments on commit ee16bcb

Please sign in to comment.