Closed julianzamt closed 1 year ago
The account named account
is not a ghost account. Because your ix is using initialize_account3
, this ix has an input named account
and is coming from there:
- name: initialize_account3
solana:
default-payer: false
summary: Like InitializeAccount2, but does not require the Rent sysvar to be provided
inputs:
- name: account
type: sol:account_info
description: The account to initialize.
solana:
attributes: [ mut ]
- name: mint
type: Mint
description: The mint this account will be associated with.
- name: owner
type: sol:pubkey
description: The new account's owner/multisignature.
I created the following issue: https://github.com/Codigo-io/issues/issues/26 to keep track of the other part of this ticket.
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: