From eb990511a653b55a8144c88b0c063ef3826a29e6 Mon Sep 17 00:00:00 2001 From: Cristovao Honorato Date: Tue, 31 Oct 2023 14:44:05 +0100 Subject: [PATCH] Bump dependencies --- sdk/factory/mastercopyDeployer.ts | 4 ++- test/05_ModuleProxyFactory.spec.ts | 5 ++- test/06_SignatureChecker.spec.ts | 20 +++++------- test/07_GuardableModifier.spec.ts | 50 ++++++++++++------------------ 4 files changed, 33 insertions(+), 46 deletions(-) diff --git a/sdk/factory/mastercopyDeployer.ts b/sdk/factory/mastercopyDeployer.ts index 1522c447..7f5dacae 100644 --- a/sdk/factory/mastercopyDeployer.ts +++ b/sdk/factory/mastercopyDeployer.ts @@ -105,7 +105,9 @@ export const deployMastercopyWithInitData = async ( ); if (targetAddress === AddressZero) { - console.log(` ✔ Mastercopy already deployed to: ${computedTargetAddress}`); + console.log( + ` ✔ Mastercopy already deployed to: ${computedTargetAddress}` + ); return AddressZero; } diff --git a/test/05_ModuleProxyFactory.spec.ts b/test/05_ModuleProxyFactory.spec.ts index c6b8dd43..7f0951c0 100644 --- a/test/05_ModuleProxyFactory.spec.ts +++ b/test/05_ModuleProxyFactory.spec.ts @@ -16,9 +16,8 @@ describe("ModuleProxyFactory", async () => { beforeEach(async () => { const Avatar = await ethers.getContractFactory("TestAvatar"); const avatar = await Avatar.deploy(); - const ModuleProxyFactory = await ethers.getContractFactory( - "ModuleProxyFactory" - ); + const ModuleProxyFactory = + await ethers.getContractFactory("ModuleProxyFactory"); moduleFactory = await ModuleProxyFactory.deploy(); const MasterCopyModule = await ethers.getContractFactory("TestModule"); diff --git a/test/06_SignatureChecker.spec.ts b/test/06_SignatureChecker.spec.ts index 6886b27a..3c0f26cf 100644 --- a/test/06_SignatureChecker.spec.ts +++ b/test/06_SignatureChecker.spec.ts @@ -86,9 +86,8 @@ describe("SignatureChecker", async () => { it("s pointing out of bounds fails", async () => { const { testSignature, relayer } = await loadFixture(setup); - const ContractSigner = await hre.ethers.getContractFactory( - "ContractSignerYes" - ); + const ContractSigner = + await hre.ethers.getContractFactory("ContractSignerYes"); const signer = (await ContractSigner.deploy()).address; const transaction = await testSignature.populateTransaction.hello(); @@ -132,9 +131,8 @@ describe("SignatureChecker", async () => { it("s pointing to selector fails", async () => { const { testSignature, relayer } = await loadFixture(setup); - const ContractSigner = await hre.ethers.getContractFactory( - "ContractSignerYes" - ); + const ContractSigner = + await hre.ethers.getContractFactory("ContractSignerYes"); const signer = (await ContractSigner.deploy()).address; const transaction = await testSignature.populateTransaction.hello(); @@ -176,9 +174,8 @@ describe("SignatureChecker", async () => { it("s pointing to signature fails", async () => { const { testSignature, relayer } = await loadFixture(setup); - const ContractSigner = await hre.ethers.getContractFactory( - "ContractSignerYes" - ); + const ContractSigner = + await hre.ethers.getContractFactory("ContractSignerYes"); const signer = (await ContractSigner.deploy()).address; const transaction = await testSignature.populateTransaction.hello(); @@ -268,9 +265,8 @@ describe("SignatureChecker", async () => { it("signer returns isValid yes", async () => { const { testSignature, relayer } = await loadFixture(setup); - const ContractSigner = await hre.ethers.getContractFactory( - "ContractSignerYes" - ); + const ContractSigner = + await hre.ethers.getContractFactory("ContractSignerYes"); const contractSigner = await ContractSigner.deploy(); const transaction = await testSignature.populateTransaction.goodbye( diff --git a/test/07_GuardableModifier.spec.ts b/test/07_GuardableModifier.spec.ts index 40ff355a..801ed16e 100644 --- a/test/07_GuardableModifier.spec.ts +++ b/test/07_GuardableModifier.spec.ts @@ -63,9 +63,8 @@ describe("GuardableModifier", async () => { }); it("pre-checks transaction if guard is set", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await modifier.setGuard(guard.address); await expect( @@ -78,9 +77,8 @@ describe("GuardableModifier", async () => { }); it("pre-check gets called with signer when transaction is relayed", async () => { - const { signer, modifier, relayer, avatar, guard } = await loadFixture( - setupTests - ); + const { signer, modifier, relayer, avatar, guard } = + await loadFixture(setupTests); await modifier.enableModule(signer.address); await modifier.setGuard(guard.address); @@ -116,9 +114,8 @@ describe("GuardableModifier", async () => { }); it("pre-checks and reverts transaction if guard is set", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await modifier.setGuard(guard.address); await expect( @@ -129,9 +126,8 @@ describe("GuardableModifier", async () => { }); it("skips post-check if no guard is enabled", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await expect( modifier @@ -141,9 +137,8 @@ describe("GuardableModifier", async () => { }); it("post-checks transaction if guard is set", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await modifier.setGuard(guard.address); await expect( @@ -168,9 +163,8 @@ describe("GuardableModifier", async () => { }); it("pre-checks transaction if guard is set", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await modifier.setGuard(guard.address); await expect( @@ -183,9 +177,8 @@ describe("GuardableModifier", async () => { }); it("pre-check gets called with signer when transaction is relayed", async () => { - const { signer, modifier, relayer, avatar, guard } = await loadFixture( - setupTests - ); + const { signer, modifier, relayer, avatar, guard } = + await loadFixture(setupTests); await modifier.enableModule(signer.address); await modifier.setGuard(guard.address); @@ -221,9 +214,8 @@ describe("GuardableModifier", async () => { }); it("pre-checks and reverts transaction if guard is set", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await modifier.setGuard(guard.address); await expect( @@ -234,9 +226,8 @@ describe("GuardableModifier", async () => { }); it("skips post-check if no guard is enabled", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await expect( modifier @@ -246,9 +237,8 @@ describe("GuardableModifier", async () => { }); it("post-checks transaction if guard is set", async () => { - const { avatar, executor, modifier, guard } = await loadFixture( - setupTests - ); + const { avatar, executor, modifier, guard } = + await loadFixture(setupTests); await modifier.setGuard(guard.address); await expect(