fix remaining tests in standalone contracts
This commit is contained in:
@ -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
|
|||||||
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
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user