current position:Home>Using openzepplin library contract

Using openzepplin library contract

2022-02-03 20:42:57 Q & A of Denglian community

How to be in openzepplin Of ERC20PresetMinterPauser.sol Add... To the contract token ceiling ?




Take the answer 1:

In their own implementation contract , heavy load ( Re actualize )mint Method , for example :

function mint(address to, uint256 amount) public override { require(totalSupply() <=  ceiling , " It's over the limit ");   super.mint(to, amount);    }



copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032042552856.html

Random recommended