fix roles initialization bug

This commit is contained in:
Francisco Giordano
2019-01-18 17:50:33 -03:00
parent 877f07f0a9
commit 73a34f96a7
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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