mirror of
https://github.com/getwax/zk-account-abstraction.git
synced 2026-01-08 04:03:59 -05:00
deploy script: deploy factory only on test networks. (#260)
* deploy script: deploy factory only on test networks.
This commit is contained in:
@@ -5,6 +5,11 @@ import { ethers } from 'hardhat'
|
||||
const deploySimpleAccountFactory: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
||||
const provider = ethers.provider
|
||||
const from = await provider.getSigner().getAddress()
|
||||
const network = await provider.getNetwork()
|
||||
// only deploy on local test network.
|
||||
if (network.chainId !== 31337 && network.chainId !== 1337) {
|
||||
return
|
||||
}
|
||||
|
||||
const entrypoint = await hre.deployments.get('EntryPoint')
|
||||
const ret = await hre.deployments.deploy(
|
||||
|
||||
Reference in New Issue
Block a user