Skip to content

Commit d6113b3

Browse files
committed
fix: disable config seal
Signed-off-by: Artur Troian <[email protected]>
1 parent ab2f82d commit d6113b3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

go/sdkutil/config.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package sdkutil
22

3-
import (
4-
sdk "github.com/cosmos/cosmos-sdk/types"
5-
)
3+
// import (
4+
// sdk "github.com/cosmos/cosmos-sdk/types"
5+
// )
66

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

0 commit comments

Comments
 (0)