Skip to content

Commit f9384e5

Browse files
committed
test: fix e2e
1 parent 04a3ceb commit f9384e5

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

proposals/dao/fip_82.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -144,27 +144,18 @@ const validate: ValidateUpgradeFunc = async (addresses, oldContracts, contracts,
144144
// 1. Validate PodAdminGateway has PROPOSER role on TribalCouncil and Protocol Pod
145145
/////////////// POD ADMIN GATEWAY //////////////////////
146146
const tribalCouncilTimelock = contracts.tribalCouncilTimelock;
147-
const gatewayIsCouncilProposer = await tribalCouncilTimelock.hasRole(
148-
ethers.utils.id('PROPOSER_ROLE'),
149-
addresses.podAdminGateway
150-
);
151-
expect(gatewayIsCouncilProposer).to.be.true;
147+
expect(await tribalCouncilTimelock.hasRole(ethers.utils.id('PROPOSER_ROLE'), addresses.podAdminGateway)).to.be.false;
148+
expect(await tribalCouncilTimelock.hasRole(ethers.utils.id('CANCELLER_ROLE'), addresses.podAdminGateway)).to.be.true;
152149

153150
/////////////// TRIBAL COUNCIL //////////////////
154151
const councilPodAdmin = await podFactory.getPodAdmin(tribalCouncilPodId);
155152
expect(councilPodAdmin).to.equal(addresses.podAdminGateway);
156153

157-
const councilSafeIsProposer = await tribalCouncilTimelock.hasRole(
158-
ethers.utils.id('PROPOSER_ROLE'),
159-
tribalCouncilSafeAddress
160-
);
161-
expect(councilSafeIsProposer).to.be.true;
154+
expect(await tribalCouncilTimelock.hasRole(ethers.utils.id('PROPOSER_ROLE'), tribalCouncilSafeAddress)).to.be.true;
155+
expect(await tribalCouncilTimelock.hasRole(ethers.utils.id('EXECUTOR_ROLE'), tribalCouncilSafeAddress)).to.be.true;
156+
expect(await tribalCouncilTimelock.hasRole(ethers.utils.id('CANCELLER_ROLE'), tribalCouncilSafeAddress)).to.be.true;
162157

163-
const podExecutorIsExecutor = await tribalCouncilTimelock.hasRole(
164-
ethers.utils.id('EXECUTOR_ROLE'),
165-
addresses.podExecutor
166-
);
167-
expect(podExecutorIsExecutor).to.be.true;
158+
expect(await tribalCouncilTimelock.hasRole(ethers.utils.id('EXECUTOR_ROLE'), addresses.podExecutor)).to.be.true;
168159

169160
const councilMembershipLocked = await podFactory.getIsMembershipTransferLocked(tribalCouncilPodId);
170161
expect(councilMembershipLocked).to.be.true;

0 commit comments

Comments
 (0)