Skip to content

Commit

Permalink
fix: filter in GetPaginatedFundingQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 23, 2023
1 parent 3c11db8 commit 92bf81b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/funders/keeper/getters_funding.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ func (k Keeper) GetPaginatedFundingQuery(
return false, err
}

if funderAddress != nil && *funderAddress != funding.FunderAddress {
return false, nil
}

if poolId != nil && *poolId != funding.PoolId {
return false, nil
}

if accumulate {
fundings = append(fundings, funding)
}
Expand Down

0 comments on commit 92bf81b

Please sign in to comment.