Skip to content

Commit

Permalink
Simplify deployment address retrieval in MockE3Program fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Feb 3, 2025
1 parent 7a6cb3f commit ee04ede
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/evm/test/fixtures/MockE3Program.fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ export async function deployE3ProgramFixture(inputValidatorAddress: string) {
const deployment = await (
await ethers.getContractFactory("MockE3Program")
).deploy(inputValidatorAddress);
const deploymentAddress = await deployment.getAddress();
return MockE3Program__factory.connect(deploymentAddress);
return MockE3Program__factory.connect(await deployment.getAddress());
}

0 comments on commit ee04ede

Please sign in to comment.