pub async fn transfer_gtc_neuron(
        donor_neuron_id: NeuronId,
        recipient_neuron_id: NeuronId,
    ) -> Result<(), String> {
        let result: Result<Result<(), GovernanceError>, (Option<i32>, String)> = call(
            GOVERNANCE_CANISTER_ID,
            "transfer_gtc_neuron",
            candid,
            (donor_neuron_id, recipient_neuron_id),
        )
        .await;

        let result = result.map_err(|(code, msg)| {
            format!(
                "Error calling method 'transfer_gtc_neuron' of the Governance canister. \
                 Code: {:?}. Message: {}",
                code, msg
            )
        })?;

        result.map_err(|e| {
            format!(
                "Error returned by 'transfer_gtc_neuron' of the Governance canister: {:?}",
                e
            )
        })
    }
/// Call the `transfer_gtc_neuron` method of the Governance canister
Call the `transfer_gtc_neuron` method of the Governance canister
Call the ` transfer_gtc_neuron ` method of the Governance canister
pub async fn transfer_gtc_neuron(
        donor_neuron_id: NeuronId,
        recipient_neuron_id: NeuronId,
    ) -> Result<(), String> {
        let result: Result<Result<(), GovernanceError>, (Option<i32>, String)> = call(
            GOVERNANCE_CANISTER_ID,
            "transfer_gtc_neuron",
            candid,
            (donor_neuron_id, recipient_neuron_id),
        )
        .await;
        let result = result.map_err(|(code, msg)| {
            format!(
                "Error calling method 'transfer_gtc_neuron' of the Governance canister. \
                 Code: {:?}. Message: {}",
                code, msg
            )
        })?;
        result.map_err(|e| {
            format!(
                "Error returned by 'transfer_gtc_neuron' of the Governance canister: {:?}",
                e
            )
        })
    }
pub async fn transfer_gtc_neuron ( donor_neuron_id : NeuronId , recipient_neuron_id : NeuronId , ) -> Result < ( ) , String > { let result : Result < Result < ( ) , GovernanceError > , ( Option < i32 > , String ) > = call ( GOVERNANCE_CANISTER_ID , " " , candid , ( donor_neuron_id , recipient_neuron_id ) , ) . await ; let result = result . map_err ( | ( code , msg ) | { format ! ( " \
 " code msg ) } ) ? ; result . map_err ( | e | { format ! ( " " e ) } ) }
Call the `transfer_gtc_neuron` method of the Governance canister
Call the ` transfer_gtc_neuron ` method of the Governance canister
donor_neuron_id
NeuronId
recipient_neuron_id
NeuronId
donor_neuron_id
NeuronId
recipient_neuron_id
NeuronId