Skip to content

Commit

Permalink
fix: test that included guardian contract
Browse files Browse the repository at this point in the history
  • Loading branch information
aon committed Jan 30, 2025
1 parent cb4f402 commit 3603d8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/SessionKeyTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,12 @@ describe("SessionKeyModule tests", function () {
assert(beaconContract != null, "No Beacon deployed");
const factoryContract = await fixtures.getAaFactory();
assert(factoryContract != null, "No AA Factory deployed");
const guardianRecoveryContract = await fixtures.getGuardianRecoveryValidator();
assert(guardianRecoveryContract != null, "No Guardian Recovery deployed");
const authServerPaymaster = await fixtures.deployExampleAuthServerPaymaster(
await factoryContract.getAddress(),
await sessionModuleContract.getAddress(),
await guardianRecoveryContract.getAddress(),
);
assert(authServerPaymaster != null, "No Auth Server Paymaster deployed");

Expand Down
2 changes: 2 additions & 0 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export class ContractFixtures {
async deployExampleAuthServerPaymaster(
aaFactoryAddress: string,
sessionKeyValidatorAddress: string,
guardianRecoveryValidatorAddress: string,
): Promise<ExampleAuthServerPaymaster> {
const contract = await create2(
"ExampleAuthServerPaymaster",
Expand All @@ -158,6 +159,7 @@ export class ContractFixtures {
[
aaFactoryAddress,
sessionKeyValidatorAddress,
guardianRecoveryValidatorAddress,
],
);
const paymasterAddress = ExampleAuthServerPaymaster__factory.connect(await contract.getAddress(), this.wallet);
Expand Down

0 comments on commit 3603d8c

Please sign in to comment.