From 7c019c698831c3ff247e328b8713cb8bd3363fa3 Mon Sep 17 00:00:00 2001 From: "jaeseung.bae" Date: Thu, 8 Feb 2024 09:26:31 +0900 Subject: [PATCH] chore: fix tests --- x/bankplus/keeper/keeper_test.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/x/bankplus/keeper/keeper_test.go b/x/bankplus/keeper/keeper_test.go index f765fbdccb..fa3517990c 100644 --- a/x/bankplus/keeper/keeper_test.go +++ b/x/bankplus/keeper/keeper_test.go @@ -61,6 +61,16 @@ type IntegrationTestSuite struct { addrCdc coreaddress.Codec } +func (s *IntegrationTestSuite) SetupSuite() { + config := sdk.GetConfig() + config.SetBech32PrefixForAccount("link", "linkpub") + config.SetBech32PrefixForValidator("linkvaloper", "linkvaloperpub") + config.SetBech32PrefixForConsensusNode("linkvalcons", "linkvalconspub") + config.SetPurpose(44) + config.SetCoinType(438) + config.Seal() +} + func (s *IntegrationTestSuite) SetupTest() { key := storetypes.NewKVStoreKey(types.StoreKey) testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) @@ -83,7 +93,7 @@ func (s *IntegrationTestSuite) SetupTest() { newAcc := sdk.AccAddress("valid") s.baseAcc = authtypes.NewBaseAccountWithAddress(newAcc) s.authKeeper.EXPECT().GetAccount(gomock.Any(), newAcc).Return(nil).AnyTimes() - s.authKeeper.EXPECT().AddressCodec().Return(address.NewBech32Codec("cosmos")).AnyTimes() + s.authKeeper.EXPECT().AddressCodec().Return(address.NewBech32Codec("link")).AnyTimes() s.authKeeper.EXPECT().NewAccountWithAddress(gomock.Any(), newAcc).Return(s.baseAcc).AnyTimes() s.authKeeper.EXPECT().GetModuleAddress("").Return(nil).AnyTimes() s.authKeeper.EXPECT().GetModuleAccount(gomock.Any(), "").Return(nil).AnyTimes()