diff --git a/internal/service/account.go b/internal/service/account.go index 7991c95..652c469 100644 --- a/internal/service/account.go +++ b/internal/service/account.go @@ -87,7 +87,7 @@ func (e *Service) GetAccountTransactions(ctx context.Context, accountID string, bson.D{{Key: "receiver", Value: addr.String()}}, }}, } - return e.getTransactions(ctx, filter, e.getFindOptions("layer", page, perPage)) + return e.getTransactions(ctx, filter, e.getFindOptions("counter", page, perPage)) } // GetAccountRewards returns rewards by account id. diff --git a/internal/service/layer.go b/internal/service/layer.go index d003c0f..38228b1 100644 --- a/internal/service/layer.go +++ b/internal/service/layer.go @@ -74,7 +74,7 @@ func (e *Service) GetLayers(ctx context.Context, page, perPage int64) (layers [] // GetLayerTransactions returns transactions for layer. func (e *Service) GetLayerTransactions(ctx context.Context, layerNum int, page, perPage int64) (txs []*model.Transaction, total int64, err error) { - return e.getTransactions(ctx, &bson.D{{Key: "layer", Value: layerNum}}, e.getFindOptions("id", page, perPage)) + return e.getTransactions(ctx, &bson.D{{Key: "layer", Value: layerNum}}, e.getFindOptions("counter", page, perPage)) } // GetLayerSmeshers returns smeshers for layer.