Commit 5eafd1de by Francisco Giordano

fix remaining tests in standalone contracts

parent f8427843
...@@ -14,6 +14,8 @@ contract Pausable is Initializable, PauserRole { ...@@ -14,6 +14,8 @@ contract Pausable is Initializable, PauserRole {
bool private _paused; bool private _paused;
function initialize(address sender) public initializer { function initialize(address sender) public initializer {
PauserRole._initialize(sender);
_paused = false; _paused = false;
} }
......
...@@ -44,10 +44,10 @@ contract StandaloneERC20 is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pa ...@@ -44,10 +44,10 @@ contract StandaloneERC20 is Initializable, ERC20Detailed, ERC20Mintable, ERC20Pa
ERC20Detailed.initialize(name, symbol, decimals); ERC20Detailed.initialize(name, symbol, decimals);
// Initialize the minter and pauser roles, and renounce them // Initialize the minter and pauser roles, and renounce them
ERC20Mintable.initialize(address(this)); ERC20Mintable.initialize(msg.sender);
renounceMinter(); renounceMinter();
ERC20Pausable.initialize(address(this)); ERC20Pausable.initialize(msg.sender);
renouncePauser(); renouncePauser();
// Add the requested minters and pausers (this can be done after renouncing since // Add the requested minters and pausers (this can be done after renouncing since
......
const encodeCall = require('zos-lib/lib/helpers/encodeCall').default; const encodeCall = require('zos-lib/lib/helpers/encodeCall').default;
const { shouldBehaveLikeERC20Mintable } = require('./behaviors/ERC20Mintable.behavior'); const { shouldBehaveLikeERC20Mintable } = require('./behaviors/ERC20Mintable.behavior');
const { shouldFail } = require('../../helpers/shouldFail'); const shouldFail = require('../../helpers/shouldFail');
const BigNumber = web3.BigNumber; const BigNumber = web3.BigNumber;
......
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