Skip to content

Commit

Permalink
testing, update solomachine event parsing (#4116)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner authored Jul 18, 2023
1 parent ea5bba6 commit db25dc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions testing/solomachine.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,10 @@ func (solo *Solomachine) ChanOpenInit(chain *TestChain, connectionID string) str
require.NoError(solo.t, err)
require.NotNil(solo.t, res)

if res, ok := res.MsgResponses[0].GetCachedValue().(*channeltypes.MsgChannelOpenInitResponse); ok {
return res.ChannelId
}
channelID, err := ParseChannelIDFromEvents(res.Events)
require.NoError(solo.t, err)

return ""
return channelID
}

// ChanOpenAck performs the channel open ack handshake step on the tendermint chain for the associated
Expand Down

0 comments on commit db25dc5

Please sign in to comment.