Icon LinkScriptResult

pub struct ScriptResult {
    pub result: u64,
    pub gas_used: u64,
}

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

fn handle_script_result(script_result: ScriptResult) {
	// handle the emitted ScriptResult receipt
}