We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b5f2e4 commit e7a2efcCopy full SHA for e7a2efc
deploy/2_deploy_SimpleAccountFactory.ts
@@ -5,6 +5,11 @@ import { ethers } from 'hardhat'
5
const deploySimpleAccountFactory: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
6
const provider = ethers.provider
7
const from = await provider.getSigner().getAddress()
8
+ const network = await provider.getNetwork()
9
+ // only deploy on local test network.
10
+ if (network.chainId !== 31337 && network.chainId !== 1337) {
11
+ return
12
+ }
13
14
const entrypoint = await hre.deployments.get('EntryPoint')
15
const ret = await hre.deployments.deploy(
0 commit comments