mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
while initialize totalSupply should be zero
This commit is contained in:
parent
6b6e662a6e
commit
04ec109c71
|
@ -30,6 +30,7 @@ contract TokenDelegate is TokenDelegateStorageV1, TokenEvents {
|
|||
*/
|
||||
function initialize(address account, uint mintingAllowedAfter_, bool transferPaused_) public {
|
||||
require(mintingAllowedAfter == 0, "Token::initialize: can only initialize once");
|
||||
require(totalSupply == 0, "Token::initialize: can only initialize once");
|
||||
require(mintingAllowedAfter_ >= block.timestamp, "Token::constructor: minting can only begin after deployment");
|
||||
require(account != address(0), "Token::initialize: invalid address");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user