Commit 73a34f96 by Francisco Giordano

fix roles initialization bug

parent 877f07f0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment