fix all tests for 2.1.2

This commit is contained in:
Francisco Giordano
2019-01-22 17:35:47 -03:00
parent dd433c41bb
commit cff2509c63
7 changed files with 42 additions and 59 deletions

View File

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