Mint to Contract
We can mint
and transfer
the asset to an Contract
.
To use the function we must import it.
use std::asset::mint_to;
To mint some amount of an asset we specify the amount
that we would like to mint and the ContractId
to send it to.
let amount = 10;
let address = 0x0000000000000000000000000000000000000000000000000000000000000001;
let pool = ContractId::from(address);
mint_to(Identity::ContractId(pool), SubId::zero(), amount);