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,
}
TransferOut
receipt is generated when coins are transferred to an address rather than a contract. Transfer
receipt. TransferOut
in the Fuel protocol ABI spec 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
}
Was this page helpful?