pub fn update_auditor(
    mint: Pubkey,
    new_auditor: &ConfidentialTransferAuditor,
    authority: Pubkey,
) -> Instruction {
    let accounts = vec![
        AccountMeta::new(mint, false),
        AccountMeta::new_readonly(authority, true),
        AccountMeta::new_readonly(
            new_auditor.authority,
            new_auditor.authority != Pubkey::default(),
        ),
    ];
    encode_instruction(
        accounts,
        ConfidentialTransferInstruction::UpdateAuditor,
        new_auditor,
    )
}
/// Create a `UpdateAuditor` instruction
Create a `UpdateAuditor` instruction
Create a ` UpdateAuditor ` instruction
pub fn update_auditor(
    mint: Pubkey,
    new_auditor: &ConfidentialTransferAuditor,
    authority: Pubkey,
) -> Instruction {
    let accounts = vec![
        AccountMeta::new(mint, false),
        AccountMeta::new_readonly(authority, true),
        AccountMeta::new_readonly(
            new_auditor.authority,
            new_auditor.authority != Pubkey::default(),
        ),
    ];
    encode_instruction(
        accounts,
        ConfidentialTransferInstruction::UpdateAuditor,
        new_auditor,
    )
}
pub fn update_auditor ( mint : Pubkey , new_auditor : & ConfidentialTransferAuditor , authority : Pubkey , ) -> Instruction { let accounts = vec ! [ AccountMeta new ( mint false ) AccountMeta new_readonly ( authority true ) AccountMeta new_readonly ( new_auditor authority new_auditor authority Pubkey default ( ) ) ] ; encode_instruction ( accounts , ConfidentialTransferInstruction :: UpdateAuditor , new_auditor , ) }
Create a `UpdateAuditor` instruction
Create a ` UpdateAuditor ` instruction
mint
Pubkey
new_auditor
&ConfidentialTransferAuditor
authority
Pubkey
mint
Pubkey
new_auditor
&ConfidentialTransferAuditor
authority
Pubkey