fix roles initialization bug
This commit is contained in:
@ -23,10 +23,10 @@ contract StandardToken is Initializable, ERC20Detailed, ERC20Mintable, ERC20Paus
|
||||
}
|
||||
|
||||
// Initialize the minter and pauser roles, and renounce them
|
||||
ERC20Mintable.initialize(address(this));
|
||||
ERC20Mintable.initialize(msg.sender);
|
||||
renounceMinter();
|
||||
|
||||
ERC20Pausable.initialize(address(this));
|
||||
ERC20Pausable.initialize(msg.sender);
|
||||
renouncePauser();
|
||||
|
||||
// Add the requested minters and pausers (this can be done after renouncing since
|
||||
|
||||
@ -21,10 +21,10 @@ contract StandaloneERC20 is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pa
|
||||
_mint(initialHolder, initialSupply);
|
||||
|
||||
// Initialize the minter and pauser roles, and renounce them
|
||||
ERC20Mintable.initialize(address(this));
|
||||
ERC20Mintable.initialize(msg.sender);
|
||||
renounceMinter();
|
||||
|
||||
ERC20Pausable.initialize(address(this));
|
||||
ERC20Pausable.initialize(msg.sender);
|
||||
renouncePauser();
|
||||
|
||||
// Add the requested minters and pausers (this can be done after renouncing since
|
||||
|
||||
@ -21,10 +21,10 @@ contract StandaloneERC721
|
||||
ERC721Metadata.initialize(name, symbol);
|
||||
|
||||
// Initialize the minter and pauser roles, and renounce them
|
||||
ERC721MetadataMintable.initialize(address(this));
|
||||
ERC721MetadataMintable.initialize(msg.sender);
|
||||
renounceMinter();
|
||||
|
||||
ERC721Pausable.initialize(address(this));
|
||||
ERC721Pausable.initialize(msg.sender);
|
||||
renouncePauser();
|
||||
|
||||
// Add the requested minters and pausers (this can be done after renouncing since
|
||||
|
||||
Reference in New Issue
Block a user