Skip to content

Commit

Permalink
feat: deploy factory for pension
Browse files Browse the repository at this point in the history
  • Loading branch information
idea404 committed Nov 10, 2023
1 parent de1d96d commit abea978
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ const config = {
};

describe("Account Abstraction Tests", function () {
let accountContractName: string;
let accountContract: zks.Contract;
let factoryContractName: string;
let factoryContract: zks.Contract;
let provider: zks.Provider;
let firstRichWallet: zks.Wallet;
let result: any;
Expand All @@ -25,8 +21,9 @@ describe("Account Abstraction Tests", function () {
});

describe("MultiSig Account Abstraction Tests", function () {
accountContractName = "TwoUserMultisig";
factoryContractName = "AAFactory";
const accountContractName = "TwoUserMultisig";
const factoryContractName = "AAFactory";
let factoryContract: ethers.Contract;
describe("MultiSig Account Factory", function () {
before(async function () {
factoryContract = await deployFactory(firstRichWallet, accountContractName, factoryContractName);
Expand All @@ -39,9 +36,10 @@ describe("Account Abstraction Tests", function () {
});

describe("MultiSig Account", async function () {
let accountContract: ethers.Contract;
let multiSigWallet: MultiSigWallet;
let ownerWallet1: zks.Wallet;
let ownerWallet2: zks.Wallet;
let multiSigWallet: MultiSigWallet;
before(async function () {
ownerWallet1 = zks.Wallet.createRandom();
ownerWallet2 = zks.Wallet.createRandom();
Expand Down Expand Up @@ -83,4 +81,20 @@ describe("Account Abstraction Tests", function () {
});
});
});

describe("Pension Account Abstraction Tests", function () {
const accountContractName = "PensionAccount";
const factoryContractName = "PensionAccountFactory";
let factoryContract: ethers.Contract;
describe("Pension Account Factory", function () {
before(async function () {
factoryContract = await deployFactory(firstRichWallet, accountContractName, factoryContractName);
});

it("Should have a tx hash that starts from 0x", async function () {
result = factoryContract.deployTransaction.hash;
expect(result).to.contains("0x");
});
});
});
});

0 comments on commit abea978

Please sign in to comment.