/// Processes an [InitializeAuditor] instruction.
Processes an [InitializeAuditor] instruction.
Processes an [ InitializeAuditor ] instruction .
fn process_initialize_auditor(
    accounts: &[AccountInfo],
    auditor: &ConfidentialTransferAuditor,
) -> ProgramResult {
    let account_info_iter = &mut accounts.iter();
    let mint_info = next_account_info(account_info_iter)?;
    check_program_account(mint_info.owner)?;
    let mint_data = &mut mint_info.data.borrow_mut();
    let mut mint = StateWithExtensionsMut::<Mint>::unpack_uninitialized(mint_data)?;
    *mint.init_extension::<ConfidentialTransferAuditor>()? = *auditor;
    Ok(())
}
fn process_initialize_auditor ( accounts : & [ AccountInfo ] , auditor : & ConfidentialTransferAuditor , ) -> ProgramResult { let account_info_iter = & mut accounts . iter ( ) ; let mint_info = next_account_info ( account_info_iter ) ? ; check_program_account ( mint_info . owner ) ? ; let mint_data = & mut mint_info . data . borrow_mut ( ) ; let mut mint = StateWithExtensionsMut :: < Mint > :: unpack_uninitialized ( mint_data ) ? ; * mint . init_extension :: < ConfidentialTransferAuditor > ( ) ? = * auditor ; Ok ( ( ) ) }
Processes an [InitializeAuditor] instruction.
Processes an [ InitializeAuditor ] instruction .
accounts
&[AccountInfo]
auditor
&ConfidentialTransferAuditor