Can I update supply if I need more coins

With this script can I update supply if I need more coins?

King new to all this and want to know how much I can update.

No, you need to use the ERC20 preset with minting functionality.

1 Like

Gosh I am so new to this.
Thanks for replying.
SO just add to my already confusing script?

pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract Passive is ERC20 {
    constructor(uint256 initialSupply) public ERC20 ("Passive", "PASS"){
        _mint(msg.sender,initialSupply);
    }
}

no, you need to use

import "https://github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol"; instead of import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract Passive is ERC20PresetMinterPauser {
...
}
2 Likes

I guess what I am asking is. I already created the token.

IN order to make changes to I create a new workspace or add to bep-20.sol I made to create the token.

thanks again

If you already created the token, you can't add functionality.

You can use Contracts Wizard to choose the functionality you need, but you will need to redeploy.

If you're learning, you should be deploying to a testnet instead of spending real money.