use fuel_types::ContractId;
pub struct Panic {
pub contract_id: ContractId,
pub reason: u32,
}
Panic
receipt is produced when a Sway smart contract call fails for a reason that doesn't produce a revert. Panic
in the Fuel Protocol spec Panic
receipt by adding a parameter with the type Panic
. fn handle_panic(panic: Panic) {
// handle the emitted Panic receipt
}