Skip to content

lang: check that ProgramAccount writable on deref_mut#681

Merged
armaniferrante merged 2 commits intosolana-foundation:masterfrom
fanatid:program-account-deref-mut
Sep 7, 2021
Merged

lang: check that ProgramAccount writable on deref_mut#681
armaniferrante merged 2 commits intosolana-foundation:masterfrom
fanatid:program-account-deref-mut

Conversation

@fanatid
Copy link
Copy Markdown
Contributor

@fanatid fanatid commented Sep 4, 2021

It's easy to skip mut for ProgramAccount and later surprise in tests that account data is not changed while the program is finished successfully.

@armaniferrante armaniferrante merged commit 675c7cd into solana-foundation:master Sep 7, 2021
@fanatid fanatid deleted the program-account-deref-mut branch September 7, 2021 04:13
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants