Skip to content
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

Small storage-plus docs update #442

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Conversation

hashedone
Copy link
Contributor

Closes #435

Comment on lines 113 to +117
part of them. We can efficiently allow pagination over these items as
well, starting at the point the last query ended, with low gas costs.
This requires the `iterator` feature to be enabled in `cw-storage-plus`
(which automatically enables it in `cosmwasm-std` as well).
(which automatically enables it in `cosmwasm-std` as well, and which is
enabled by default).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this sentence sounds bit confusing.

We can efficiently allow pagination (...). This requires the iterator feature to be enabled in cw-storage-plus (which automatically enables it in cosmwasm-std as well, and which is enabled by default).

Maybe change to something like this?

This requires the iterator feature to be enabled in cw-storage-plus (it is enabled by default; it also automatically enables it in cosmwasm-std).

Copy link
Collaborator

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would reorder one sentence, beside that

LGMT

Copy link
Member

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix

Exclusive(&'a [u8]),
pub enum Bound {
Inclusive(Vec<u8>),
Exclusive(Vec<u8>),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have None anymore, right? Just Option<Bound>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, missed that.

@ethanfrey ethanfrey merged commit 6906c29 into main Sep 20, 2021
@ethanfrey ethanfrey deleted the 435-storage-plus-doc-update branch September 20, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

small updates on storage-plus docs
3 participants