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::{constants::ZERO_B256, asset::mint};
fn foo() {
mint(ZERO_B256, 500);
}