Skip to content

Commit 0f94f17

Browse files
committed
merge main
2 parents 7247a52 + db6f316 commit 0f94f17

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+3288
-2906
lines changed

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ ignore:
5353
- "modules/**/**/**/*.pb.go"
5454
- "modules/**/**/**/*.pb.gw.go"
5555
- "modules/**/**/**/test_common.go"
56+
- "testing/"
5657
- "scripts/"

modules/apps/transfer/handler_test.go

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"github.com/cosmos/ibc-go/modules/apps/transfer/types"
1010
clienttypes "github.com/cosmos/ibc-go/modules/core/02-client/types"
1111
channeltypes "github.com/cosmos/ibc-go/modules/core/04-channel/types"
12-
"github.com/cosmos/ibc-go/modules/core/exported"
1312
ibctesting "github.com/cosmos/ibc-go/testing"
1413
)
1514

@@ -31,90 +30,102 @@ func (suite *TransferTestSuite) SetupTest() {
3130
suite.chainC = suite.coordinator.GetChain(ibctesting.GetChainID(2))
3231
}
3332

33+
func NewTransferPath(chainA, chainB *ibctesting.TestChain) *ibctesting.Path {
34+
path := ibctesting.NewPath(chainA, chainB)
35+
path.EndpointA.ChannelConfig.PortID = ibctesting.TransferPort
36+
path.EndpointB.ChannelConfig.PortID = ibctesting.TransferPort
37+
38+
return path
39+
}
40+
3441
// constructs a send from chainA to chainB on the established channel/connection
3542
// and sends the same coin back from chainB to chainA.
3643
func (suite *TransferTestSuite) TestHandleMsgTransfer() {
3744
// setup between chainA and chainB
38-
clientA, clientB, connA, connB := suite.coordinator.SetupClientConnections(suite.chainA, suite.chainB, exported.Tendermint)
39-
channelA, channelB := suite.coordinator.CreateTransferChannels(suite.chainA, suite.chainB, connA, connB, channeltypes.UNORDERED)
40-
// originalBalance := suite.chainA.App.BankKeeper.GetBalance(suite.chainA.GetContext(), suite.chainA.SenderAccount.GetAddress(), sdk.DefaultBondDenom)
45+
path := NewTransferPath(suite.chainA, suite.chainB)
46+
suite.coordinator.Setup(path)
47+
48+
// originalBalance := suite.chainA.GetSimApp().BankKeeper.GetBalance(suite.chainA.GetContext(), suite.chainA.SenderAccount.GetAddress(), sdk.DefaultBondDenom)
4149
timeoutHeight := clienttypes.NewHeight(0, 110)
4250

4351
coinToSendToB := sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100))
4452

4553
// send from chainA to chainB
46-
msg := types.NewMsgTransfer(channelA.PortID, channelA.ID, coinToSendToB, suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0)
54+
msg := types.NewMsgTransfer(path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, coinToSendToB, suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0)
4755

48-
err := suite.coordinator.SendMsg(suite.chainA, suite.chainB, clientB, msg)
56+
_, err := suite.chainA.SendMsgs(msg)
4957
suite.Require().NoError(err) // message committed
5058

5159
// relay send
5260
fungibleTokenPacket := types.NewFungibleTokenPacketData(coinToSendToB.Denom, coinToSendToB.Amount.Uint64(), suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String())
53-
packet := channeltypes.NewPacket(fungibleTokenPacket.GetBytes(), 1, channelA.PortID, channelA.ID, channelB.PortID, channelB.ID, timeoutHeight, 0)
61+
packet := channeltypes.NewPacket(fungibleTokenPacket.GetBytes(), 1, path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, timeoutHeight, 0)
5462
ack := channeltypes.NewResultAcknowledgement([]byte{byte(1)})
55-
err = suite.coordinator.RelayPacket(suite.chainA, suite.chainB, clientA, clientB, packet, ack.Acknowledgement())
63+
err = path.RelayPacket(packet, ack.Acknowledgement())
5664
suite.Require().NoError(err) // relay committed
5765

5866
// check that voucher exists on chain B
5967
voucherDenomTrace := types.ParseDenomTrace(types.GetPrefixedDenom(packet.GetDestPort(), packet.GetDestChannel(), sdk.DefaultBondDenom))
60-
balance := suite.chainB.App.BankKeeper.GetBalance(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress(), voucherDenomTrace.IBCDenom())
68+
balance := suite.chainB.GetSimApp().BankKeeper.GetBalance(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress(), voucherDenomTrace.IBCDenom())
6169

62-
coinSentFromAToB := types.GetTransferCoin(channelB.PortID, channelB.ID, sdk.DefaultBondDenom, 100)
70+
coinSentFromAToB := types.GetTransferCoin(path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, sdk.DefaultBondDenom, 100)
6371
suite.Require().Equal(coinSentFromAToB, balance)
6472

6573
// setup between chainB to chainC
66-
clientOnBForC, clientOnCForB, connOnBForC, connOnCForB := suite.coordinator.SetupClientConnections(suite.chainB, suite.chainC, exported.Tendermint)
67-
channelOnBForC, channelOnCForB := suite.coordinator.CreateTransferChannels(suite.chainB, suite.chainC, connOnBForC, connOnCForB, channeltypes.UNORDERED)
74+
// NOTE:
75+
// pathBtoC.EndpointA = endpoint on chainB
76+
// pathBtoC.EndpointB = endpoint on chainC
77+
pathBtoC := NewTransferPath(suite.chainB, suite.chainC)
78+
suite.coordinator.Setup(pathBtoC)
6879

6980
// send from chainB to chainC
70-
msg = types.NewMsgTransfer(channelOnBForC.PortID, channelOnBForC.ID, coinSentFromAToB, suite.chainB.SenderAccount.GetAddress().String(), suite.chainC.SenderAccount.GetAddress().String(), timeoutHeight, 0)
81+
msg = types.NewMsgTransfer(pathBtoC.EndpointA.ChannelConfig.PortID, pathBtoC.EndpointA.ChannelID, coinSentFromAToB, suite.chainB.SenderAccount.GetAddress().String(), suite.chainC.SenderAccount.GetAddress().String(), timeoutHeight, 0)
7182

72-
err = suite.coordinator.SendMsg(suite.chainB, suite.chainC, clientOnCForB, msg)
83+
_, err = suite.chainB.SendMsgs(msg)
7384
suite.Require().NoError(err) // message committed
7485

7586
// relay send
7687
// NOTE: fungible token is prefixed with the full trace in order to verify the packet commitment
77-
fullDenomPath := types.GetPrefixedDenom(channelOnCForB.PortID, channelOnCForB.ID, voucherDenomTrace.GetFullDenomPath())
88+
fullDenomPath := types.GetPrefixedDenom(pathBtoC.EndpointB.ChannelConfig.PortID, pathBtoC.EndpointB.ChannelID, voucherDenomTrace.GetFullDenomPath())
7889
fungibleTokenPacket = types.NewFungibleTokenPacketData(voucherDenomTrace.GetFullDenomPath(), coinSentFromAToB.Amount.Uint64(), suite.chainB.SenderAccount.GetAddress().String(), suite.chainC.SenderAccount.GetAddress().String())
79-
packet = channeltypes.NewPacket(fungibleTokenPacket.GetBytes(), 1, channelOnBForC.PortID, channelOnBForC.ID, channelOnCForB.PortID, channelOnCForB.ID, timeoutHeight, 0)
80-
err = suite.coordinator.RelayPacket(suite.chainB, suite.chainC, clientOnBForC, clientOnCForB, packet, ack.Acknowledgement())
90+
packet = channeltypes.NewPacket(fungibleTokenPacket.GetBytes(), 1, pathBtoC.EndpointA.ChannelConfig.PortID, pathBtoC.EndpointA.ChannelID, pathBtoC.EndpointB.ChannelConfig.PortID, pathBtoC.EndpointB.ChannelID, timeoutHeight, 0)
91+
err = pathBtoC.RelayPacket(packet, ack.Acknowledgement())
8192
suite.Require().NoError(err) // relay committed
8293

8394
coinSentFromBToC := sdk.NewInt64Coin(types.ParseDenomTrace(fullDenomPath).IBCDenom(), 100)
84-
balance = suite.chainC.App.BankKeeper.GetBalance(suite.chainC.GetContext(), suite.chainC.SenderAccount.GetAddress(), coinSentFromBToC.Denom)
95+
balance = suite.chainC.GetSimApp().BankKeeper.GetBalance(suite.chainC.GetContext(), suite.chainC.SenderAccount.GetAddress(), coinSentFromBToC.Denom)
8596

8697
// check that the balance is updated on chainC
8798
suite.Require().Equal(coinSentFromBToC, balance)
8899

89100
// check that balance on chain B is empty
90-
balance = suite.chainB.App.BankKeeper.GetBalance(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress(), coinSentFromBToC.Denom)
101+
balance = suite.chainB.GetSimApp().BankKeeper.GetBalance(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress(), coinSentFromBToC.Denom)
91102
suite.Require().Zero(balance.Amount.Int64())
92103

93104
// send from chainC back to chainB
94-
msg = types.NewMsgTransfer(channelOnCForB.PortID, channelOnCForB.ID, coinSentFromBToC, suite.chainC.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0)
105+
msg = types.NewMsgTransfer(pathBtoC.EndpointB.ChannelConfig.PortID, pathBtoC.EndpointB.ChannelID, coinSentFromBToC, suite.chainC.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), timeoutHeight, 0)
95106

96-
err = suite.coordinator.SendMsg(suite.chainC, suite.chainB, clientOnBForC, msg)
107+
_, err = suite.chainC.SendMsgs(msg)
97108
suite.Require().NoError(err) // message committed
98109

99110
// relay send
100111
// NOTE: fungible token is prefixed with the full trace in order to verify the packet commitment
101112
fungibleTokenPacket = types.NewFungibleTokenPacketData(fullDenomPath, coinSentFromBToC.Amount.Uint64(), suite.chainC.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String())
102-
packet = channeltypes.NewPacket(fungibleTokenPacket.GetBytes(), 1, channelOnCForB.PortID, channelOnCForB.ID, channelOnBForC.PortID, channelOnBForC.ID, timeoutHeight, 0)
103-
err = suite.coordinator.RelayPacket(suite.chainC, suite.chainB, clientOnCForB, clientOnBForC, packet, ack.Acknowledgement())
113+
packet = channeltypes.NewPacket(fungibleTokenPacket.GetBytes(), 1, pathBtoC.EndpointB.ChannelConfig.PortID, pathBtoC.EndpointB.ChannelID, pathBtoC.EndpointA.ChannelConfig.PortID, pathBtoC.EndpointA.ChannelID, timeoutHeight, 0)
114+
err = pathBtoC.RelayPacket(packet, ack.Acknowledgement())
104115
suite.Require().NoError(err) // relay committed
105116

106-
balance = suite.chainB.App.BankKeeper.GetBalance(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress(), coinSentFromAToB.Denom)
117+
balance = suite.chainB.GetSimApp().BankKeeper.GetBalance(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress(), coinSentFromAToB.Denom)
107118

108119
// check that the balance on chainA returned back to the original state
109120
suite.Require().Equal(coinSentFromAToB, balance)
110121

111122
// check that module account escrow address is empty
112123
escrowAddress := types.GetEscrowAddress(packet.GetDestPort(), packet.GetDestChannel())
113-
balance = suite.chainB.App.BankKeeper.GetBalance(suite.chainB.GetContext(), escrowAddress, sdk.DefaultBondDenom)
124+
balance = suite.chainB.GetSimApp().BankKeeper.GetBalance(suite.chainB.GetContext(), escrowAddress, sdk.DefaultBondDenom)
114125
suite.Require().Equal(sdk.NewCoin(sdk.DefaultBondDenom, sdk.ZeroInt()), balance)
115126

116127
// check that balance on chain B is empty
117-
balance = suite.chainC.App.BankKeeper.GetBalance(suite.chainC.GetContext(), suite.chainC.SenderAccount.GetAddress(), voucherDenomTrace.IBCDenom())
128+
balance = suite.chainC.GetSimApp().BankKeeper.GetBalance(suite.chainC.GetContext(), suite.chainC.SenderAccount.GetAddress(), voucherDenomTrace.IBCDenom())
118129
suite.Require().Zero(balance.Amount.Int64())
119130
}
120131

modules/apps/transfer/keeper/genesis_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ func (suite *KeeperTestSuite) TestGenesis() {
2525
Path: path,
2626
}
2727
traces = append(types.Traces{denomTrace}, traces...)
28-
suite.chainA.App.TransferKeeper.SetDenomTrace(suite.chainA.GetContext(), denomTrace)
28+
suite.chainA.GetSimApp().TransferKeeper.SetDenomTrace(suite.chainA.GetContext(), denomTrace)
2929
}
3030

31-
genesis := suite.chainA.App.TransferKeeper.ExportGenesis(suite.chainA.GetContext())
31+
genesis := suite.chainA.GetSimApp().TransferKeeper.ExportGenesis(suite.chainA.GetContext())
3232

3333
suite.Require().Equal(types.PortID, genesis.PortId)
3434
suite.Require().Equal(traces.Sort(), genesis.DenomTraces)
3535

3636
suite.Require().NotPanics(func() {
37-
suite.chainA.App.TransferKeeper.InitGenesis(suite.chainA.GetContext(), *genesis)
37+
suite.chainA.GetSimApp().TransferKeeper.InitGenesis(suite.chainA.GetContext(), *genesis)
3838
})
3939
}

modules/apps/transfer/keeper/grpc_query_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (suite *KeeperTestSuite) TestQueryDenomTrace() {
4444
func() {
4545
expTrace.Path = "transfer/channelToA/transfer/channelToB"
4646
expTrace.BaseDenom = "uatom"
47-
suite.chainA.App.TransferKeeper.SetDenomTrace(suite.chainA.GetContext(), expTrace)
47+
suite.chainA.GetSimApp().TransferKeeper.SetDenomTrace(suite.chainA.GetContext(), expTrace)
4848

4949
req = &types.QueryDenomTraceRequest{
5050
Hash: expTrace.Hash().String(),
@@ -100,7 +100,7 @@ func (suite *KeeperTestSuite) TestQueryDenomTraces() {
100100
expTraces = append(expTraces, types.DenomTrace{Path: "transfer/channelToA/transfer/channelToB", BaseDenom: "uatom"})
101101

102102
for _, trace := range expTraces {
103-
suite.chainA.App.TransferKeeper.SetDenomTrace(suite.chainA.GetContext(), trace)
103+
suite.chainA.GetSimApp().TransferKeeper.SetDenomTrace(suite.chainA.GetContext(), trace)
104104
}
105105

106106
req = &types.QueryDenomTracesRequest{

modules/apps/transfer/keeper/keeper_test.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,23 @@ func (suite *KeeperTestSuite) SetupTest() {
3131
suite.chainB = suite.coordinator.GetChain(ibctesting.GetChainID(1))
3232
suite.chainC = suite.coordinator.GetChain(ibctesting.GetChainID(2))
3333

34-
queryHelper := baseapp.NewQueryServerTestHelper(suite.chainA.GetContext(), suite.chainA.App.InterfaceRegistry())
35-
types.RegisterQueryServer(queryHelper, suite.chainA.App.TransferKeeper)
34+
queryHelper := baseapp.NewQueryServerTestHelper(suite.chainA.GetContext(), suite.chainA.GetSimApp().InterfaceRegistry())
35+
types.RegisterQueryServer(queryHelper, suite.chainA.GetSimApp().TransferKeeper)
3636
suite.queryClient = types.NewQueryClient(queryHelper)
3737
}
3838

39+
func NewTransferPath(chainA, chainB *ibctesting.TestChain) *ibctesting.Path {
40+
path := ibctesting.NewPath(chainA, chainB)
41+
path.EndpointA.ChannelConfig.PortID = ibctesting.TransferPort
42+
path.EndpointB.ChannelConfig.PortID = ibctesting.TransferPort
43+
44+
return path
45+
}
46+
3947
func (suite *KeeperTestSuite) TestGetTransferAccount() {
4048
expectedMaccAddr := sdk.AccAddress(crypto.AddressHash([]byte(types.ModuleName)))
4149

42-
macc := suite.chainA.App.TransferKeeper.GetTransferAccount(suite.chainA.GetContext())
50+
macc := suite.chainA.GetSimApp().TransferKeeper.GetTransferAccount(suite.chainA.GetContext())
4351

4452
suite.Require().NotNil(macc)
4553
suite.Require().Equal(types.ModuleName, macc.GetName())

modules/apps/transfer/keeper/mbt_relay_test.go

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"github.com/cosmos/ibc-go/modules/apps/transfer/types"
1919
clienttypes "github.com/cosmos/ibc-go/modules/core/02-client/types"
2020
channeltypes "github.com/cosmos/ibc-go/modules/core/04-channel/types"
21-
"github.com/cosmos/ibc-go/modules/core/exported"
2221
ibctesting "github.com/cosmos/ibc-go/testing"
2322
)
2423

@@ -251,10 +250,10 @@ func (bank *Bank) NonZeroString() string {
251250
// Construct a bank out of the chain bank
252251
func BankOfChain(chain *ibctesting.TestChain) Bank {
253252
bank := MakeBank()
254-
chain.App.BankKeeper.IterateAllBalances(chain.GetContext(), func(address sdk.AccAddress, coin sdk.Coin) (stop bool) {
253+
chain.GetSimApp().BankKeeper.IterateAllBalances(chain.GetContext(), func(address sdk.AccAddress, coin sdk.Coin) (stop bool) {
255254
fullDenom := coin.Denom
256255
if strings.HasPrefix(coin.Denom, "ibc/") {
257-
fullDenom, _ = chain.App.TransferKeeper.DenomPathFromHash(chain.GetContext(), coin.Denom)
256+
fullDenom, _ = chain.GetSimApp().TransferKeeper.DenomPathFromHash(chain.GetContext(), coin.Denom)
258257
}
259258
bank.SetBalance(address.String(), fullDenom, coin.Amount)
260259
return false
@@ -295,18 +294,18 @@ func (suite *KeeperTestSuite) TestModelBasedRelay() {
295294
}
296295

297296
suite.SetupTest()
298-
_, _, connAB, connBA := suite.coordinator.SetupClientConnections(suite.chainA, suite.chainB, exported.Tendermint)
299-
_, _, connBC, connCB := suite.coordinator.SetupClientConnections(suite.chainB, suite.chainC, exported.Tendermint)
300-
suite.coordinator.CreateTransferChannels(suite.chainA, suite.chainB, connAB, connBA, channeltypes.UNORDERED)
301-
suite.coordinator.CreateTransferChannels(suite.chainB, suite.chainC, connBC, connCB, channeltypes.UNORDERED)
297+
pathAtoB := NewTransferPath(suite.chainA, suite.chainB)
298+
pathBtoC := NewTransferPath(suite.chainB, suite.chainC)
299+
suite.coordinator.Setup(pathAtoB)
300+
suite.coordinator.Setup(pathBtoC)
302301

303302
for i, tlaTc := range tlaTestCases {
304303
tc := OnRecvPacketTestCaseFromTla(tlaTc)
305304
registerDenom := func() {
306305
denomTrace := types.ParseDenomTrace(tc.packet.Data.Denom)
307306
traceHash := denomTrace.Hash()
308-
if !suite.chainB.App.TransferKeeper.HasDenomTrace(suite.chainB.GetContext(), traceHash) {
309-
suite.chainB.App.TransferKeeper.SetDenomTrace(suite.chainB.GetContext(), denomTrace)
307+
if !suite.chainB.GetSimApp().TransferKeeper.HasDenomTrace(suite.chainB.GetContext(), traceHash) {
308+
suite.chainB.GetSimApp().TransferKeeper.SetDenomTrace(suite.chainB.GetContext(), denomTrace)
310309
}
311310
}
312311

@@ -334,7 +333,7 @@ func (suite *KeeperTestSuite) TestModelBasedRelay() {
334333
denom := denomTrace.IBCDenom()
335334
err = sdk.ValidateDenom(denom)
336335
if err == nil {
337-
err = suite.chainB.App.TransferKeeper.SendTransfer(
336+
err = suite.chainB.GetSimApp().TransferKeeper.SendTransfer(
338337
suite.chainB.GetContext(),
339338
tc.packet.SourcePort,
340339
tc.packet.SourceChannel,
@@ -345,17 +344,17 @@ func (suite *KeeperTestSuite) TestModelBasedRelay() {
345344
0)
346345
}
347346
case "OnRecvPacket":
348-
err = suite.chainB.App.TransferKeeper.OnRecvPacket(suite.chainB.GetContext(), packet, tc.packet.Data)
347+
err = suite.chainB.GetSimApp().TransferKeeper.OnRecvPacket(suite.chainB.GetContext(), packet, tc.packet.Data)
349348
case "OnTimeoutPacket":
350349
registerDenom()
351-
err = suite.chainB.App.TransferKeeper.OnTimeoutPacket(suite.chainB.GetContext(), packet, tc.packet.Data)
350+
err = suite.chainB.GetSimApp().TransferKeeper.OnTimeoutPacket(suite.chainB.GetContext(), packet, tc.packet.Data)
352351
case "OnRecvAcknowledgementResult":
353-
err = suite.chainB.App.TransferKeeper.OnAcknowledgementPacket(
352+
err = suite.chainB.GetSimApp().TransferKeeper.OnAcknowledgementPacket(
354353
suite.chainB.GetContext(), packet, tc.packet.Data,
355354
channeltypes.NewResultAcknowledgement(nil))
356355
case "OnRecvAcknowledgementError":
357356
registerDenom()
358-
err = suite.chainB.App.TransferKeeper.OnAcknowledgementPacket(
357+
err = suite.chainB.GetSimApp().TransferKeeper.OnAcknowledgementPacket(
359358
suite.chainB.GetContext(), packet, tc.packet.Data,
360359
channeltypes.NewErrorAcknowledgement("MBT Error Acknowledgement"))
361360
default:

modules/apps/transfer/keeper/params_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import "github.com/cosmos/ibc-go/modules/apps/transfer/types"
55
func (suite *KeeperTestSuite) TestParams() {
66
expParams := types.DefaultParams()
77

8-
params := suite.chainA.App.TransferKeeper.GetParams(suite.chainA.GetContext())
8+
params := suite.chainA.GetSimApp().TransferKeeper.GetParams(suite.chainA.GetContext())
99
suite.Require().Equal(expParams, params)
1010

1111
expParams.SendEnabled = false
12-
suite.chainA.App.TransferKeeper.SetParams(suite.chainA.GetContext(), expParams)
13-
params = suite.chainA.App.TransferKeeper.GetParams(suite.chainA.GetContext())
12+
suite.chainA.GetSimApp().TransferKeeper.SetParams(suite.chainA.GetContext(), expParams)
13+
params = suite.chainA.GetSimApp().TransferKeeper.GetParams(suite.chainA.GetContext())
1414
suite.Require().Equal(expParams, params)
1515
}

0 commit comments

Comments
 (0)