referrerpolicy=no-referrer-when-downgrade

Function burn_for_teleport

Source
pub fn burn_for_teleport<AssetTransactor>(
    origin: &Location,
    fee: &Asset,
) -> Result
where AssetTransactor: TransactAsset,
Expand description

Helper function that validates fee can be burned, then withdraws it from origin and burns it. Note: Make sure this is called from a transactional storage context so that side-effects are rolled back on errors.