mirror of
https://github.com/luxfi/eoa-contracts.git
synced 2026-10-30 16:58:32 +00:00
20 lines
676 B
TypeScript
20 lines
676 B
TypeScript
import { getEntryPoint } from "../../utils/setupHelper";
|
|
import { deployments } from "hardhat";
|
|
import { BundlerTestEnvironment } from "./bundlerEnvironment";
|
|
import { promises } from "fs";
|
|
import path from "path";
|
|
|
|
const envPath = path.join(__dirname, ".env");
|
|
|
|
if (require.main === module) {
|
|
(async () => {
|
|
await BundlerTestEnvironment.getDefaultInstance();
|
|
await deployments.createFixture(async ({ deployments }) => {
|
|
await deployments.fixture();
|
|
const entrypoint = await getEntryPoint();
|
|
console.log("Entrypoint deployed at", entrypoint.address);
|
|
await promises.writeFile(envPath, `ENTRYPOINT=${entrypoint.address}`);
|
|
})();
|
|
})();
|
|
}
|