You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As informed in #7 , csl_spl_token.initialize_mint2 generates in processor csl_spl_token_v_0_0_0_info as var name. However, using csl_spl_token.mint_to produces token_program_info, therefore duplicating the need for the token program account.
Later was found that just using csl_spl_token.mint_to produces the duplicated accounts. This behavior was masked by the aforementioned.
let account_info_iter = &mut accounts.iter();
let fee_payer_info = next_account_info(account_info_iter)?;
let mint_info = next_account_info(account_info_iter)?;
let regular_token_account_info = next_account_info(account_info_iter)?;
let system_program_info = next_account_info(account_info_iter)?;
let account_info = next_account_info(account_info_iter)?;
let assoc_token_account_info = next_account_info(account_info_iter)?;
let owner_info = next_account_info(account_info_iter)?;
let wallet_info = next_account_info(account_info_iter)?;
let token_program_info = next_account_info(account_info_iter)?; -------------------> token program account expected
let csl_spl_token_v_0_0_0_info = next_account_info(account_info_iter)?; -------------------> token program account expected
Expected behavior
To use only one name (preferrably token_program_info) and to not duplicate the inputs.
Código CLI version:
Version v0.8
The text was updated successfully, but these errors were encountered:
Describe the bug
As informed in #7 ,
csl_spl_token.initialize_mint2
generates in processorcsl_spl_token_v_0_0_0_info
as var name. However, usingcsl_spl_token.mint_to
producestoken_program_info
, therefore duplicating the need for the token program account.To Reproduce
In processor:
Expected behavior
To use only one name (preferrably token_program_info) and to not duplicate the inputs.
Código CLI version:
The text was updated successfully, but these errors were encountered: