Skip to content

Commit

Permalink
fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
zale144 committed Jan 1, 2025
1 parent ea6e4d5 commit 93c5d46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eibc/order_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ func (p *orderPoller) getDemandOrdersFromIndexer(ctx context.Context) ([]Order,
func (p *orderPoller) getRollappDemandOrdersFromIndexer(ctx context.Context, rollappId string) ([]Order, error) {
lastFinalizedHeight, err := p.rollappClient.LatestHeight(ctx, &types.QueryGetLatestHeightRequest{
RollappId: rollappId,
Finalized: true,
})
if err != nil {
return nil, fmt.Errorf("failed to get latest finalized height: %w", err)
return nil, fmt.Errorf("failed to get latest finalized height for rollapp '%s': %w", rollappId, err)
}

queryStr := fmt.Sprintf(rollappOrdersQuery, p.chainID, fmt.Sprint(p.lastBlockHeight.Load()), rollappId, fmt.Sprint(lastFinalizedHeight.Height))
Expand Down

0 comments on commit 93c5d46

Please sign in to comment.