Skip to content

Commit

Permalink
fix: disable config seal
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Jul 17, 2024
1 parent ab2f82d commit d6113b3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions go/sdkutil/config.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package sdkutil

import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
// import (
// sdk "github.com/cosmos/cosmos-sdk/types"
// )

// init atm SDK configs is instantiated with const values, so it sealed within init below
// it helps for all tests as well as packages relying on this api to always have the same config
// as soon as sdkutil is imported
func init() {
config := sdk.GetConfig()
config.SetBech32PrefixForAccount(Bech32PrefixAccAddr, Bech32PrefixAccPub)
config.SetBech32PrefixForValidator(Bech32PrefixValAddr, Bech32PrefixValPub)
config.SetBech32PrefixForConsensusNode(Bech32PrefixConsAddr, Bech32PrefixConsPub)
config.Seal()
}
// func init() {
// config := sdk.GetConfig()
// config.SetBech32PrefixForAccount(Bech32PrefixAccAddr, Bech32PrefixAccPub)
// config.SetBech32PrefixForValidator(Bech32PrefixValAddr, Bech32PrefixValPub)
// config.SetBech32PrefixForConsensusNode(Bech32PrefixConsAddr, Bech32PrefixConsPub)
// config.Seal()
// }

0 comments on commit d6113b3

Please sign in to comment.