(hre: HardhatRuntimeEnvironment)
| 3 | import { ethers } from 'hardhat' |
| 4 | |
| 5 | const deployEntryPoint: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { |
| 6 | const provider = ethers.provider |
| 7 | const from = await provider.getSigner().getAddress() |
| 8 | |
| 9 | const ret = await hre.deployments.deploy( |
| 10 | 'EntryPoint', { |
| 11 | from, |
| 12 | args: [], |
| 13 | gasLimit: 6e6, |
| 14 | deterministicDeployment: process.env.SALT ?? true, |
| 15 | log: true |
| 16 | }) |
| 17 | console.log('==entrypoint addr=', ret.address) |
| 18 | } |
| 19 | |
| 20 | export default deployEntryPoint |
nothing calls this directly
no test coverage detected