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

Explore index and index_assign for StorageMap and other dynamic storage types #4437

Open
mohammadfawaz opened this issue Apr 13, 2023 · 0 comments
Labels
lib: std Standard library

Comments

@mohammadfawaz
Copy link
Contributor

#4331 and #4334 attempt to introduce index and index_assign to StoargeMap and StorageVec respectively. These methods are then called by the compiler when [] is used to support syntax like storage.map[a] = b.

As we're not sure how to go about supporting [] for arbitrary types just yet, I've closed those PRs. They do contain important code though for future reference, particularly code that de-sugars [] to calls to index or index_assign.

@mohammadfawaz mohammadfawaz added the lib: std Standard library label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib: std Standard library
Projects
None yet
Development

No branches or pull requests

1 participant