token-js: createAssociatedTokenAccountIdempotentInstruction
shouldn't require client to pass in associatedToken
#7178
Labels
good first issue
Good for newcomers
The handy
createAssociatedTokenAccountIdempotentInstruction
allows you create instructions that idempotently create associated token accounts. One thing that annoys me about it is that it requires me to pass in the associated token account, like so:I don't see the purpose of this given that associated token accounts can always be derived by the
getAssociatedTokenAddressSync
. Maybe this function was written beforegetAssociatedTokenAddressSync
existed? In any case, it would be nice if this parameter was made optional or removed entirely.The text was updated successfully, but these errors were encountered: