Icon LinkReturn

use fuel_types::ContractId;
pub struct Return {
    pub contract_id: ContractId,
    pub val: u64,
    pub pc: u64,
    pub is: u64,
}

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

fn handle_return(data: Return) {
	// handle the emitted Return receipt
}

Was this page helpful?