This repository was archived by the owner on Aug 27, 2024. It is now read-only.
Document StorageNMap in the knowledge base#1013
Merged
jimmychu0807 merged 1 commit intosourcefrom Jun 2, 2021
Merged
Conversation
nuke-web3
approved these changes
May 20, 2021
KiChjang
commented
May 25, 2021
| - for `StorageDoubleMap`: | ||
| `doublemap hasher($hasher) rust_type, hasher($hasher) rust_type => rust_type` | ||
| - for `StorageNMap`: | ||
| `nmap hasher($hasher1) rust_type, hasher($hasher2) rust_type, /* ... */ hasher($hasherN) rust_type => rust_type` |
Contributor
Author
There was a problem hiding this comment.
I don't actually have a good syntax to indicate that the hasher($hasher) rust_type part is repeatable here, not sure what I have on this line correctly captures the intent, or whether I needed to write more to explain that this part is repeatable.
Contributor
|
Thanks for the update, @KiChjang |
shawntabrizi
approved these changes
May 25, 2021
Contributor
Author
|
@jimmychu0807 Did we make a release for a new version of substrate? If not, the links referenced in this PR would break since e.g. https://substrate.dev/rustdocs/v3.0.0/frame_support/storage/trait.StorageNMap.html does not exist. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is in preparation for the next release since paritytech/substrate#8635 has been merged.
The links to the rustdocs obviously don't work yet since a new release of substrate hasn't been cut yet.