Skip to content

Commit

Permalink
deploy simple account
Browse files Browse the repository at this point in the history
  • Loading branch information
ququzone committed Jul 25, 2023
1 parent e197f1a commit c12d7a8
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
22 changes: 22 additions & 0 deletions deploy/02_deploy_account_simple.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ethers } from "hardhat"
import { DeployFunction } from "hardhat-deploy/types"
import { HardhatRuntimeEnvironment } from "hardhat/types"

const deploy: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, getNamedAccounts } = hre
const { deployer } = await getNamedAccounts()
const { deploy } = deployments

const entryPoint = await ethers.getContract("EntryPoint")

await deploy("SimpleAccountFactory", {
from: deployer,
args: [entryPoint.address],
log: true,
deterministicDeployment: true,
})
}

deploy.tags = ["simple_factory", "simple", "account"]
deploy.dependencies = ["entrypoint"]
export default deploy
107 changes: 107 additions & 0 deletions deployments/testnet/SimpleAccountFactory.json

Large diffs are not rendered by default.

0 comments on commit c12d7a8

Please sign in to comment.