-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add get getSellersCollectionsPaginated method #824
Conversation
@@ -450,7 +450,8 @@ interface IBosonAccountHandler is IBosonAccountEvents, BosonErrors { | |||
) external view returns (bool exists, BosonTypes.Seller memory seller, BosonTypes.AuthToken memory authToken); | |||
|
|||
/** | |||
* @notice Gets the details about a seller's collections. | |||
* @notice Gets the details about all seller's collections. | |||
* In case seller has too many collections and this runs out of gas, pleas use getSellersCollectionsPaginated. |
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.
* In case seller has too many collections and this runs out of gas, pleas use getSellersCollectionsPaginated. | |
* In case seller has too many collections and this runs out of gas, please use getSellersCollectionsPaginated. |
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.
same typo in other places
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.
It would make sense to provide a method getCollectionCount(sellerId) returns uint256
, IMHO
Closes #709
Implementation is slightly different than proposed in the issue. It matches the pattern in the existing
getTokenListPaginated
.This allows to retrieval of multiple collections with a single call, but with more granular control.
Changes:
getSellersCollectionsPaginated
toSellerHandlerFacet