ScriptResult
pub struct ScriptResult {
pub result: u64,
pub gas_used: u64,
}
- A
ScriptResultreceipt is generated when a contract call resolves; that is, it's generated as a result of theRET,RETD, andRVRTinstructions. - The
resultfield will contain a0for success, and a non-zero value otherwise. - Read more about
ScriptResultin the Fuel protocol ABI spec