Return
use fuel_types::ContractId;
pub struct Return {
pub contract_id: ContractId,
pub val: u64,
pub pc: u64,
pub is: u64,
}
- A
Return
receipt is generated when returning a non-reference type in a Sway contract.- Specifically
bool
,u8
,u16
,u32
, andu64
.
- Specifically
- The
val
field includes the value being returned. - Read more about
Log
in the Fuel protocol ABI spec