Icon SunFilledIcon MoonStars
Icon SunFilledIcon MoonStars

Icon LinkTransferOut

use fuel_types::{ContractId, AssetId, Address};
pub struct TransferOut {
    pub contract_id: ContractId,
    pub to: Address,
    pub amount: u64,
    pub asset_id: AssetId,
    pub pc: u64,
    pub is: u64,
}

You can handle functions that produce a TransferOut receipt type by adding a parameter with the type TransferOut.

fn handle_transferout(transfer_out: TransferOut) {
	// handle the emitted TransferOut receipt
}