fix remaining tests in standalone contracts

This commit is contained in:
Francisco Giordano
2019-01-21 18:16:45 -03:00
parent f84278433d
commit 5eafd1dec2
3 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,8 @@ contract Pausable is Initializable, PauserRole {
bool private _paused;
function initialize(address sender) public initializer {
PauserRole._initialize(sender);
_paused = false;
}

View File

@ -44,10 +44,10 @@ contract StandaloneERC20 is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pa
ERC20Detailed.initialize(name, symbol, decimals);
// 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

@ -1,6 +1,6 @@
const encodeCall = require('zos-lib/lib/helpers/encodeCall').default;
const { shouldBehaveLikeERC20Mintable } = require('./behaviors/ERC20Mintable.behavior');
const { shouldFail } = require('../../helpers/shouldFail');
const shouldFail = require('../../helpers/shouldFail');
const BigNumber = web3.BigNumber;