diff --git a/programs/compressed-token/program/src/mint_action/accounts.rs b/programs/compressed-token/program/src/mint_action/accounts.rs index ee6eda7842..0607eb27b1 100644 --- a/programs/compressed-token/program/src/mint_action/accounts.rs +++ b/programs/compressed-token/program/src/mint_action/accounts.rs @@ -449,14 +449,11 @@ impl AccountsConfig { create_mint: parsed_instruction_data.create_mint.is_some(), }) } else { - // For MintTo or MintToCToken actions - // - needed for tokens_out_queue and authority validation - let has_mint_to_actions = parsed_instruction_data.actions.iter().any(|action| { - matches!( - action, - ZAction::MintToCompressed(_) | ZAction::MintToCToken(_) - ) - }); + // Used to expect tokens_out_queue for MintToCompressed action. + let has_mint_to_actions = parsed_instruction_data + .actions + .iter() + .any(|action| matches!(action, ZAction::MintToCompressed(_))); Ok(AccountsConfig { with_cpi_context,