coral-xyz / sealevel-attacks

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

fixed a logic error in "secure" example #2

Closed soteria-bc closed 2 years ago

soteria-bc commented 2 years ago

In '&spl_token::ID == ctx.accounts.token_program.key' change '==' to ' != '

armaniferrante commented 2 years ago

thank you!