bnb-chain / BEPs

BNB Evolution Proposals
832 stars 558 forks source link

How do I increase the token amount? #168

Closed furkandamar closed 11 months ago

furkandamar commented 2 years ago

I created BEP20 token via remix, now I want to increase this token amount. How can I make 100 thousand tokens 200 thousand?

isaacyuno commented 2 years ago

If you are using openzeppelin-contracts, you could call utilize the _mint function, or you could implement similar logic by yourself, like: function _mint(address to, uint value) internal { totalSupply = totalSupply.add(value); balanceOf[to] = balanceOf[to].add(value); emit Transfer(address(0), to, value); }