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

Some collection types use prefix incorrectly #369

Open
abacabadabacaba opened this issue Jan 15, 2021 · 1 comment
Open

Some collection types use prefix incorrectly #369

abacabadabacaba opened this issue Jan 15, 2021 · 1 comment
Assignees

Comments

@abacabadabacaba
Copy link

abacabadabacaba commented Jan 15, 2021

The constructors of collection types have a parameter named prefix. A user may assume that all storage keys used to store the collection's data begin with prefix.

This doesn't hold for some collection types. This may result in storage collisions between different collections, as well as between collections and direct storage use.

Also, it will be nice if the collections in near-sdk-as had the same storage representation as in near-sdk-rs.

@willemneal willemneal self-assigned this Feb 16, 2021
@willemneal
Copy link
Contributor

@abacabadabacaba, which collection types does this not hold for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants