Skip to content

Commit

Permalink
fix(x/ecocredit): fix sell-orders query index (#1676)
Browse files Browse the repository at this point in the history
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 12, 2022
1 parent 9e3144b commit 6e3c1e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#1583](https://github.com/regen-network/regen-ledger/pull/1583) Return gRPC response code in base query response
- [#1588](https://github.com/regen-network/regen-ledger/pull/1588) Return gRPC response code in basket and marketplace query response
- [#1674](https://github.com/regen-network/regen-ledger/pull/1674) Update `MsgSend` to return an error if sender and recipient are same
- [#1676] (https://github.com/regen-network/regen-ledger/pull/1676) Fix sell orders query index

#### Removed

Expand Down
2 changes: 1 addition & 1 deletion x/ecocredit/marketplace/keeper/query_sell_orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (k Keeper) SellOrders(ctx context.Context, req *types.QuerySellOrdersReques
return nil, regenerrors.ErrInvalidArgument.Wrap(err.Error())
}

it, err := k.stateStore.SellOrderTable().List(ctx, api.SellOrderSellerIndexKey{}, ormlist.Paginate(pg))
it, err := k.stateStore.SellOrderTable().List(ctx, api.SellOrderIdIndexKey{}, ormlist.Paginate(pg))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6e3c1e3

Please sign in to comment.