coral-xyz / sealevel-attacks

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

feat: Sysvar address check example added #15

Closed anoushk1234 closed 2 years ago

anoushk1234 commented 2 years ago

Added the manual check require_eq!(ctx.accounts.rent.key(), sysvar::rent::ID);

armaniferrante commented 2 years ago

Thank you!

anoushk1234 commented 2 years ago

Thank you!

It's always a pleasure working with the best in the solana ecosystem :)