-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NODE-2618 Fixed GRPC getNFTList #3904
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the following test: given the list [N1, N2, N3, N4, N5], limit=2 and after=N2, the method should return [N3, N4]. It should also work across the liquid block boundaries (e.g. when N2 is in the DB, and N3..N5 are in the liquid block).
@@ -35,7 +35,7 @@ class AssetsApiGrpcImpl(assetsApi: CommonAssetsApi, accountsApi: CommonAccountsA | |||
.concatMapIterable(_.map { case (a, d) => | |||
NFTResponse(a.id.toByteString, Some(assetInfoResponse(d))) | |||
}) | |||
.take(request.limit) | |||
.takeLast(request.limit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem right: it would always return the last request.limit
entries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ready to discuss this:
node/src/main/scala/com/wavesplatform/api/common/AddressPortfolio.scala
Outdated
Show resolved
Hide resolved
node/src/main/scala/com/wavesplatform/api/common/AddressPortfolio.scala
Outdated
Show resolved
Hide resolved
5a822a7
to
833a7c3
Compare
No description provided.