-
Notifications
You must be signed in to change notification settings - Fork 109
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
feat: resize mapping account #419
Conversation
20731e9
to
632208e
Compare
product1.pubkey(), | ||
product5.pubkey(), | ||
product3.pubkey(), | ||
product4.pubkey() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did this file change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_account_data_as
can no longer be used with MappingAccount
because it's too large to fit on the stack, so I had to refactor this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Removed the |
c9942b3
to
e3fa870
Compare
After upgrading the program, other instructions using the mapping account will fail until the mapping account is resized.
Because of solana limitations, multiple transactions will be needed to resize the account.