generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4de25a
commit 8e16a39
Showing
2 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
packages/evm/test/fixtures/MockComputationModule.fixture.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
import { ethers } from "hardhat"; | ||
|
||
import type { MockComputationModule } from "../../types/contracts/test/MockComputationModule"; | ||
import type { MockComputationModule__factory } from "../../types/factories/contracts/test/MockComputationModule__factory"; | ||
import { MockComputationModule__factory } from "../../types/factories/contracts/test/MockComputationModule__factory"; | ||
|
||
export async function deployMockComputationModuleFixture() { | ||
const MockComputationModule = (await ethers.getContractFactory( | ||
"MockComputationModule", | ||
)) as MockComputationModule__factory; | ||
const mockComputationModule = (await MockComputationModule.deploy()) as MockComputationModule; | ||
const mockComputationModule_address = await mockComputationModule.getAddress(); | ||
export async function deployComputationModuleFixture() { | ||
const deployment = await (await ethers.getContractFactory("MockComputationModule")).deploy(); | ||
|
||
return { mockComputationModule, mockComputationModule_address }; | ||
return MockComputationModule__factory.connect(await deployment.getAddress()); | ||
} |