Skip to content

Commit

Permalink
fix(contracts): update owner check test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Feb 20, 2024
1 parent 6492785 commit 8b77665
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/tests/EASGatekeeper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ describe("EAS Gatekeeper", () => {

it("should fail to set MACI instance when the caller is not the owner", async () => {
const [, secondSigner] = await getSigners();
await expect(easGatekeeper.connect(secondSigner).setMaciInstance(signerAddress)).to.be.revertedWith(
"Ownable: caller is not the owner",
await expect(easGatekeeper.connect(secondSigner).setMaciInstance(signerAddress)).to.be.revertedWithCustomError(
easGatekeeper,
"OwnableUnauthorizedAccount",
);
});

Expand Down

0 comments on commit 8b77665

Please sign in to comment.