pub fn mint_to_address(to: Address, sub_id: SubId, amount: u64) 
Expand description

Mint amount coins of the current contract’s asset_id and send them to
the Address to.


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


use std::{constants::ZERO_B256, asset::mint_to_address};

fn foo() {
    let to = Address::from(ZERO_B256);
    mint_to_address(to, ZERO_B256, 500);