Change admin role allocation in TimelockControler constructor (#3722)

Co-authored-by: Francisco <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2022-09-23 16:58:56 +02:00
committed by GitHub
parent aa4b901788
commit 408055dfab
5 changed files with 45 additions and 18 deletions

View File

@ -33,7 +33,7 @@ contract('GovernorTimelockControl', function (accounts) {
const [ deployer ] = await web3.eth.getAccounts();
this.token = await Token.new(tokenName, tokenSymbol);
this.timelock = await Timelock.new(3600, [], []);
this.timelock = await Timelock.new(3600, [], [], deployer);
this.mock = await Governor.new(
name,
this.token.address,
@ -322,7 +322,12 @@ contract('GovernorTimelockControl', function (accounts) {
describe('updateTimelock', function () {
beforeEach(async function () {
this.newTimelock = await Timelock.new(3600, [], []);
this.newTimelock = await Timelock.new(
3600,
[ this.mock.address ],
[ this.mock.address ],
constants.ZERO_ADDRESS,
);
});
it('is protected', async function () {