diff --git a/CHANGELOG.md b/CHANGELOG.md index 362ac12364..832b0ce49f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/x/ecocredit/marketplace/keeper/query_sell_orders.go b/x/ecocredit/marketplace/keeper/query_sell_orders.go index 5706afb476..94897010c6 100644 --- a/x/ecocredit/marketplace/keeper/query_sell_orders.go +++ b/x/ecocredit/marketplace/keeper/query_sell_orders.go @@ -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 }