Incorrect code generation for creating a Regular Token Account #8
Labels
Bug
This is an item that causes unwanted behavior
Enhancement
This improve the product or Código's source code
Describe the bug
Not all Token accounts must be ATAs. Some users may prefer the old pattern, where N token accounts from a Mint can be owned by the same wallet.
However, using
csl_spl_token.initialize_account3
in combination withcsl_spl_token.Account
generates code as if the account to be initialized is a PDA, but it cannot be, as it must be created beforehand. This is wrong and must be fixed.Also, a phantasmagoric
account
is generated, unnecessarilly polluting the accounts array.To Reproduce
processor:
Wrong "PDA" code
Unnecessary extra seeds args:
And also, PDA creation, which is wrong, but further, it is created as if it is owned by the local program
"Phantasmagoric" unrequired extra account:
Expected behavior
To generate code for regular account creation.
Código CLI version:
The text was updated successfully, but these errors were encountered: