Skip to content

Commit

Permalink
Add EntryPointSimulations contract
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed Jun 19, 2024
1 parent 4305341 commit 7b73323
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/4337/contracts/test/Imports.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "@account-abstraction/contracts/core/EntryPointSimulations.sol";
20 changes: 20 additions & 0 deletions modules/4337/src/deploy/entrypointHelpers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { DeployFunction } from 'hardhat-deploy/types'

const deploy: DeployFunction = async ({ deployments, getNamedAccounts, network }) => {
if (!network.tags.test) {
return
}

const { deployer } = await getNamedAccounts()
const { deploy } = deployments

await deploy('EntryPointSimulations', {
from: deployer,
args: [],
log: true,
deterministicDeployment: true,
})
}


Check failure on line 19 in modules/4337/src/deploy/entrypointHelpers.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎`
export default deploy
5 changes: 5 additions & 0 deletions modules/4337/test/utils/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export const getEntryPoint = async () => {
return await ethers.getContractAt('IEntryPoint', EntryPointDeployment.address)
}

export const getEntryPointSimulations = async () => {
const EntryPointDeployment = await deployments.get('EntryPointSimulations')
return await ethers.getContractAt('EntryPointSimulations', EntryPointDeployment.address)
}

export const getSafeAtAddress = async (address: string) => {
return await ethers.getContractAt('SafeMock', address)
}
Expand Down

0 comments on commit 7b73323

Please sign in to comment.