MCPcopy
hub / github.com/eth-infinitism/account-abstraction / deployEntryPoint

Function deployEntryPoint

test/testutils.ts:280–284  ·  view source on GitHub ↗
(provider = ethers.provider)

Source from the content-addressed store, hash-verified

278}
279
280export async function deployEntryPoint (provider = ethers.provider): Promise<EntryPoint> {
281 const create2factory = new Create2Factory(provider)
282 const addr = toChecksumAddress(await create2factory.deploy(EntryPoint__factory.bytecode, process.env.SALT, process.env.COVERAGE != null ? 20e6 : 8e6))
283 return EntryPoint__factory.connect(addr, provider.getSigner())
284}
285
286export async function isDeployed (addr: string): Promise<boolean> {
287 const code = await ethers.provider.getCode(addr)

Calls 2

deployMethod · 0.95
connectMethod · 0.80

Tested by

no test coverage detected