use fuel_types::{AssetId, ContractId};
pub struct Mint {
pub sub_id: AssetId,
pub contract_id: ContractId,
pub val: u64,
pub pc: u64,
pub is: u64,
}
Mint
receipt is generated whenever an asset is burned in a Sway contract. Mint
in the Fuel protocol ABI spec You can handle functions that produce a Mint
receipt type by adding a parameter with the type Mint
.
fn handle_mint(mint: Mint) {
// handle the emitted Mint receipt
}