How to allow all to use mint function of aptos coin

52 views Asked by At

How to allow anyone use mint function of my coin in aptos?

Now i have this code

    public entry fun mint(account: &signer, dst_addr: address, amount: u64) {
        aptos_framework::managed_coin::mint<Coin>(account, dst_addr, amount);
    }
1

There are 1 answers

0
0xaptosj On

Aptos is moving away from Coin standard, Fungbile Asset is the successor to Coin.

Checkout the fungible asset tutorial on minting and transferring a fungible asset you create.