Skip to content

Commit

Permalink
feat(test): updates test to remove EAS contract initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
aminah-io committed Oct 16, 2023
1 parent ef8392c commit 0d8f683
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/GitcoinPassportDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const easEncodeInvalidStamp = () => {
return encodedData;
}

describe("GitcoinPassportDecoder", async function () {
describe("GitcoinPassportDecoder", function () {
this.beforeAll(async function () {
const [ownerAccount, iamAcct, recipientAccount, otherAccount] =
await ethers.getSigners();
Expand All @@ -82,6 +82,8 @@ describe("GitcoinPassportDecoder", async function () {
await this.gitcoinAttester.connect(this.owner).initialize();
this.gitcoinAttesterAddress = await this.gitcoinAttester.getAddress();

await this.gitcoinAttester.setEASAddress(EAS_CONTRACT_ADDRESS);

// Deploy GitcoinVerifier
const GitcoinVerifier = await ethers.getContractFactory(
"GitcoinVerifier",
Expand All @@ -96,9 +98,6 @@ describe("GitcoinPassportDecoder", async function () {
await this.gitcoinAttester.getAddress()
);

this.eas = new EAS(EAS_CONTRACT_ADDRESS);
await this.gitcoinAttester.setEASAddress(EAS_CONTRACT_ADDRESS);

const chainId = await ethers.provider
.getNetwork()
.then((n: { chainId: any }) => n.chainId);
Expand Down

0 comments on commit 0d8f683

Please sign in to comment.