1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use solana_client::rpc_client::RpcClient;
use solana_program::pubkey::Pubkey;

use common::command::{CliConfig, ProcessResult};
use common::contract::instructions::transfer_partner_claim_authority::new_transfer_partner_claim_authority;
use common::utils::send::send_tx;

pub fn process(
    rpc_client: &RpcClient,
    config: &CliConfig,
    partner: &Pubkey,
    new_authority: &Pubkey,
) -> ProcessResult {
    let ixs = [new_transfer_partner_claim_authority(
        partner,
        new_authority,
        config.pubkey().unwrap(),
    )];

    let res = send_tx(rpc_client, config, &ixs)?;

    Ok("signers : ".to_owned() + res.to_string().as_str())
}