Program Security - Updated duplicate mutable accounts lesson #399
Conversation
| Consider a program that updates a data field for `user_a` and `user_b` in a | ||
| single instruction. If the same account is passed for both `user_a` and | ||
| `user_b`, the program will overwrite the data field with the second value, | ||
| potentially leading to unintended side effects. |
There was a problem hiding this comment.
Excellent @0xCipherCoder - this has a lot higher signal:noise ratio than the older version.
mikemaccana
left a comment
There was a problem hiding this comment.
Excellent work @0xCipherCoder. It's clear you've read the contributing guidelines. I made some small changes to the test names (see https://github.com/solana-foundation/developer-content/blob/main/CONTRIBUTING.md#jsts) but this is great. Setting you as the winner for this bounty.
|
@0xCipherCoder I can't find your entry linking this PR on on https://earn.superteam.fun/listings/bounty/update-solana-developer-lessons/ ? Can you please make one if you haven't already? |
@mikemaccana |
|
Found it! You'll be in the winners list on 12 Sep at the end of the bounty. 🏆 I'd love you to work on more lessons - feel free to contact me (@mikemaccana on telegram or x) to help find a good entry. |
Problem
Updated a lesson compatible with the latest anchor version, conventions, and best practices as per the guidelines and fixed grammatical mistakes.
Summary of Changes
Unboxed PRs
Starter - Unboxed-Software/solana-duplicate-mutable-accounts#1
Solution - Unboxed-Software/solana-duplicate-mutable-accounts#2
Fixes #