Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cristovaoth committed Oct 31, 2023
1 parent 84528e5 commit eb99051
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 46 deletions.
4 changes: 3 additions & 1 deletion sdk/factory/mastercopyDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
5 changes: 2 additions & 3 deletions test/05_ModuleProxyFactory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
20 changes: 8 additions & 12 deletions test/06_SignatureChecker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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(
Expand Down
50 changes: 20 additions & 30 deletions test/07_GuardableModifier.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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);
Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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);
Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand All @@ -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(
Expand Down

0 comments on commit eb99051

Please sign in to comment.