Fix v5.2 testing (#5339)

This commit is contained in:
Hadrien Croubois
2024-12-04 18:29:46 +01:00
committed by GitHub
parent e5e9ff72f0
commit 7e014ee487

View File

@ -269,7 +269,9 @@ describe('GovernorCountingOverridable', function () {
});
it('can not vote twice', async function () {
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against));
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against))
.to.emit(this.mock, 'VoteCast')
.withArgs(this.voter1, this.helper.id, VoteType.Against, ethers.parseEther('5'), '');
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Abstain))
.to.be.revertedWithCustomError(this.mock, 'GovernorAlreadyCastVote')
.withArgs(this.voter1.address);