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

Update State.store to be able to store multiple key-values #1096

Closed
iFrostizz opened this issue Jul 5, 2024 · 0 comments · Fixed by #1097
Closed

Update State.store to be able to store multiple key-values #1096

iFrostizz opened this issue Jul 5, 2024 · 0 comments · Fixed by #1097
Assignees

Comments

@iFrostizz
Copy link
Contributor

As raised in #1095 (comment)
The current way of putting stuff in storage is by calling store on the state directly which takes as an input a K: Key, V: BorshSerialize. This is problematic if there is a lot of data to store because we need to call the function independently multiple times which takes a lot of code space.
We should create a function that allows storing a list of tuple (K, V) in storage.

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

Successfully merging a pull request may close this issue.

1 participant