-
Notifications
You must be signed in to change notification settings - Fork 602
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
Dong/pagination for all intermediary accounts #4752
Dong/pagination for all intermediary accounts #4752
Conversation
Closing then re-opening this PR to properly trigger CI |
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.
hey @DongLieu, I think the branch you are working from might be out of date, because go.work.sum
has been recently added to .gitignore
file
Ok. Thank you |
This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
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.
Thanks for the PR! LGTM once test case improvised
res, err := suite.querier.AllIntermediaryAccounts(sdk.WrapSDKContext(suite.Ctx), &types.AllIntermediaryAccountsRequest{}) | ||
suite.Require().NoError(err) | ||
suite.Require().Equal(3, len(res.Accounts)) | ||
suite.Require().Equal(uint64(3), res.Pagination.Total) |
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.
can we also check the returned values as well?
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 pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you! |
@DongLieu has this change been tested locally? If so and it works, ping me and I will merge. |
I tested it locally with a test TestAllIntermediaryAccounts(), everything is great |
@DongLieu oh no I meant, have you compiled this binary locally and queried mainnet or testnet with this and works as intended |
i tried it successfully on testnet |
Nice :D |
* Add pagination support for AllIntermediaryAccounts query in Superfluid Module * lint * merge main
Closes: #4168
What is the purpose of the change
Add pagination support for AllIntermediaryAccounts query in Superfluid Module
Testing and Verifying
golangci-lint run --fix
Add testcase for AllIntermediaryAccounts