File tree 1 file changed +0
-25
lines changed
modules/apps/27-interchain-accounts/keeper
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -212,31 +212,6 @@ func (suite *KeeperTestSuite) TestOnRecvPacket() {
212
212
},
213
213
true ,
214
214
},
215
- {
216
- "interchain account fails to execute stakingtypes.MsgDelegate - insufficient funds" ,
217
- func () {
218
- interchainAccountAddr , found := suite .chainB .GetSimApp ().ICAKeeper .GetInterchainAccountAddress (suite .chainB .GetContext (), path .EndpointA .ChannelConfig .PortID )
219
- suite .Require ().True (found )
220
-
221
- validatorAddr := (sdk .ValAddress )(suite .chainB .Vals .Validators [0 ].Address )
222
- msg := & stakingtypes.MsgDelegate {
223
- DelegatorAddress : interchainAccountAddr ,
224
- ValidatorAddress : validatorAddr .String (),
225
- Amount : sdk .NewCoin (sdk .DefaultBondDenom , sdk .NewInt (50000 )), // Increase the amount so it triggers insufficient funds
226
- }
227
-
228
- data , err := types .SerializeCosmosTx (suite .chainA .GetSimApp ().AppCodec (), []sdk.Msg {msg })
229
- suite .Require ().NoError (err )
230
-
231
- icaPacketData := types.InterchainAccountPacketData {
232
- Type : types .EXECUTE_TX ,
233
- Data : data ,
234
- }
235
-
236
- packetData = icaPacketData .GetBytes ()
237
- },
238
- false ,
239
- },
240
215
{
241
216
"interchain account successfully executes stakingtypes.MsgDelegate and stakingtypes.MsgUndelegate sequentially" ,
242
217
func () {
You can’t perform that action at this time.
0 commit comments