@@ -175,6 +175,13 @@ func (s *TypesTestSuite) TestMsgSendPacketValidateBasic() {
175
175
},
176
176
{
177
177
name : "failure: invalid length for payload" ,
178
+ malleate : func () {
179
+ msg .Payloads = []types.Payload {{}, {}}
180
+ },
181
+ expError : types .ErrInvalidPayload ,
182
+ },
183
+ {
184
+ name : "failure: invalid packetdata" ,
178
185
malleate : func () {
179
186
msg .Payloads = []types.Payload {}
180
187
},
@@ -241,6 +248,13 @@ func (s *TypesTestSuite) TestMsgRecvPacketValidateBasic() {
241
248
},
242
249
expError : commitmenttypes .ErrInvalidProof ,
243
250
},
251
+ {
252
+ name : "failure: invalid length for packet payloads" ,
253
+ malleate : func () {
254
+ msg .Packet .Payloads = []types.Payload {{}, {}}
255
+ },
256
+ expError : types .ErrInvalidPacket ,
257
+ },
244
258
{
245
259
name : "failure: invalid signer" ,
246
260
malleate : func () {
@@ -288,6 +302,13 @@ func (s *TypesTestSuite) TestMsgAcknowledge_ValidateBasic() {
288
302
},
289
303
expError : commitmenttypes .ErrInvalidProof ,
290
304
},
305
+ {
306
+ name : "failure: invalid length for packet payloads" ,
307
+ malleate : func () {
308
+ msg .Packet .Payloads = []types.Payload {{}, {}}
309
+ },
310
+ expError : types .ErrInvalidPacket ,
311
+ },
291
312
{
292
313
name : "failure: invalid signer" ,
293
314
malleate : func () {
@@ -345,6 +366,13 @@ func (s *TypesTestSuite) TestMsgTimeoutValidateBasic() {
345
366
},
346
367
expError : ibcerrors .ErrInvalidAddress ,
347
368
},
369
+ {
370
+ name : "failure: invalid length for packet payloads" ,
371
+ malleate : func () {
372
+ msg .Packet .Payloads = []types.Payload {{}, {}}
373
+ },
374
+ expError : types .ErrInvalidPacket ,
375
+ },
348
376
{
349
377
name : "failure: invalid packet" ,
350
378
malleate : func () {
0 commit comments