Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
bznein committed Jul 8, 2024
1 parent 4bd7ecf commit 57d9877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ func (s *E2ETestSuite) GetChainAChannel() ibc.ChannelOutput {
// entry in the list of chains.
func (s *E2ETestSuite) GetChainChannel(id ChainChannelPair) ibc.ChannelOutput {
chains := s.GetAllChains()
s.Require().Less(id.ChainIdx, len(chains), "required index %d is larger than the last index in the list of chains (%d)", id.ChainIdx, len(chains)-1)
s.Require().Less(id.ChainIdx, uint64(len(chains)), "required index %d is larger than the last index in the list of chains (%d)", id.ChainIdx, len(chains)-1)

chain := chains[id.ChainIdx]
channels := s.GetChannels(chain)
s.Require().Less(id.ChannelIdx, len(channels), "required channel index %d is larger than the last index in the list of channels (%d)", id.ChannelIdx, len(channels)-1)
s.Require().Less(id.ChannelIdx, uint64(len(channels)), "required channel index %d is larger than the last index in the list of channels (%d)", id.ChannelIdx, len(channels)-1)
return channels[id.ChannelIdx]
}

Expand Down

0 comments on commit 57d9877

Please sign in to comment.