LogData
use fuel_types::ContractId;
pub struct LogData {
pub contract_id: ContractId,
pub data: Vec<u8>,
pub rb: u64,
pub len: u64,
pub ptr: u64,
}
- A
LogDatareceipt is generated when callinglog()in a Sway contract on a reference type; this includes all types except non-reference types. - The
datafield will include the logged value as a hexadecimal.- The
rbfield will contain a unique ID that can be used to look up the logged data type.
- The
- Read more about
LogDatain the Fuel protocol ABI spec