diff --git a/contracts/tests/EASGatekeeper.test.ts b/contracts/tests/EASGatekeeper.test.ts index baa7c36e65..656409fd9d 100644 --- a/contracts/tests/EASGatekeeper.test.ts +++ b/contracts/tests/EASGatekeeper.test.ts @@ -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", ); });