coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

Add accounts resolution for associated token accounts #2925

Closed metaproph3t closed 2 months ago

metaproph3t commented 2 months ago

Associated token accounts have statically derivable addresses, so it would be cool if the accounts resolver could do this and I didn't need to pass them into .accounts({ ... }). I'm guessing this would require adding the same pda field to the associated token accounts in the IDL.

acheroncrypto commented 2 months ago

Yeah, this would be great to have and is already on my todo list.