Skip to content

Commit

Permalink
doc and nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 8, 2023
1 parent 9d6f746 commit 0c68fb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,10 +804,13 @@ func (tr TestRun) getTrustedHeight(
scanner := bufio.NewScanner(cmdReader)

var trustedHeight gjson.Result
// iterate on the relayer's response
// and parse the the command "result"
for scanner.Scan() {
out := scanner.Text()
if len(gjson.Get(out, "result").Array()) > 0 {
trustedHeight = gjson.Get(out, "result").Array()[index]
break
}
}

Expand Down

0 comments on commit 0c68fb0

Please sign in to comment.