coral-xyz / sealevel-attacks

☠️ Common Security Exploits and Protections on Solana
507 stars 95 forks source link

Add comments to 6-duplicate-mutable-accounts #44

Open techvoyagerX opened 1 month ago

techvoyagerX commented 1 month ago

Added comments to explain the differences in the insecure, recommended, and secure implementations of the 6-duplicate-mutable-accounts program. Comments focus on account validation and data updating.