fix all tests for 2.1.2
This commit is contained in:
@ -13,7 +13,7 @@ import "../token/ERC20/ERC20Pausable.sol";
|
||||
contract StandardToken is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pausable {
|
||||
function initialize(
|
||||
string memory name, string memory symbol, uint8 decimals, uint256 initialSupply, address initialHolder,
|
||||
address[] memory minters, address[] memory pausers
|
||||
address[] memory minters, address[] memory pausers, address sender
|
||||
) public initializer {
|
||||
ERC20Detailed.initialize(name, symbol, decimals);
|
||||
|
||||
@ -23,11 +23,11 @@ contract StandardToken is Initializable, ERC20Detailed, ERC20Mintable, ERC20Paus
|
||||
}
|
||||
|
||||
// Initialize the minter and pauser roles, and renounce them
|
||||
ERC20Mintable.initialize(msg.sender);
|
||||
renounceMinter();
|
||||
ERC20Mintable.initialize(sender);
|
||||
_removeMinter(sender);
|
||||
|
||||
ERC20Pausable.initialize(msg.sender);
|
||||
renouncePauser();
|
||||
ERC20Pausable.initialize(sender);
|
||||
_removePauser(sender);
|
||||
|
||||
// Add the requested minters and pausers (this can be done after renouncing since
|
||||
// these are the internal calls)
|
||||
|
||||
Reference in New Issue
Block a user