@@ -66,8 +66,6 @@ func NewWasmTestChain(chain *ibctesting.TestChain) *WasmTestChain {
66
66
return & res
67
67
}
68
68
69
- // TODO: jawoznia
70
- // Waiting for ParsePacketsFromEventsV2 being implemented by ibcv2 team
71
69
func (chain * WasmTestChain ) CaptureIBCEventsV2 (result * abci.ExecTxResult ) {
72
70
toSend , err := ParsePacketsFromEventsV2 (channeltypesv2 .EventTypeSendPacket , result .Events )
73
71
require .NoError (chain , err )
@@ -77,6 +75,9 @@ func (chain *WasmTestChain) CaptureIBCEventsV2(result *abci.ExecTxResult) {
77
75
}
78
76
}
79
77
78
+ // TODO: Remove this once it's implemented in the `ibc-go`.
79
+ // https://github.com/cosmos/ibc-go/issues/8284
80
+ //
80
81
// ParsePacketsFromEventsV2 parses events emitted from a MsgRecvPacket and returns
81
82
// all the packets found.
82
83
// Returns an error if no packet is found.
@@ -94,7 +95,6 @@ func ParsePacketsFromEventsV2(eventType string, events []abci.Event) ([]channelt
94
95
if err != nil {
95
96
return ferr (err )
96
97
}
97
- // packet, err := DeserializePacketV2(data)
98
98
var packet channeltypesv2.Packet
99
99
err = proto .Unmarshal (data , & packet )
100
100
if err != nil {
@@ -106,12 +106,8 @@ func ParsePacketsFromEventsV2(eventType string, events []abci.Event) ([]channelt
106
106
continue
107
107
}
108
108
}
109
-
110
109
}
111
110
}
112
- // if len(packets) == 0 {
113
- // return ferr(errors.New("acknowledgement event attribute not found"))
114
- // }
115
111
return packets , nil
116
112
}
117
113
@@ -140,9 +136,6 @@ func (chain *WasmTestChain) OverrideSendMsgs(msgs ...sdk.Msg) (*abci.ExecTxResul
140
136
result , err := chain .TestChain .SendMsgs (msgs ... )
141
137
chain .SendMsgsOverride = chain .OverrideSendMsgs
142
138
chain .CaptureIBCEvents (result )
143
- // TODO: jawoznia
144
- // Waiting for ParsePacketsFromEventsV2 being implemented by ibcv2 team
145
- //
146
139
chain .CaptureIBCEventsV2 (result )
147
140
return result , err
148
141
}
0 commit comments