From 8b776654fe2b1ccfb012c7a1f345427b6c9ce0fa Mon Sep 17 00:00:00 2001 From: 0xmad <0xmad@users.noreply.github.com> Date: Tue, 20 Feb 2024 11:31:40 -0600 Subject: [PATCH] fix(contracts): update owner check test --- contracts/tests/EASGatekeeper.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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", ); });