Function std::asset::mint

pub fn mint(sub_id: SubId, amount: u64) 
Expand description

Mint amount coins of the current contract’s sub_id. The newly minted assets are owned by the current contract.

Arguments

  • sub_id: [SubId] - The sub identifier of the asset which to mint.
  • amount: [u64] - The amount of coins to mint.

Examples

use std::asset::mint;

fn foo() {
    mint(SubId::zero(), 500);
}