Skip to content

Commit

Permalink
Merge pull request #196 from bogatyy/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbochok authored Feb 6, 2024
2 parents 583cb67 + ebfac9e commit d55ea62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions l1-contracts/scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ async function main() {
verbose: true,
});

if (cmd.onlyVerifier) {
await deployer.deployVerifier(create2Salt, { gasPrice, nonce });
return;
}

// Create2 factory already deployed on the public networks, only deploy it on local node
if (process.env.CHAIN_ETH_NETWORK === "localhost") {
await deployer.deployCreate2Factory({ gasPrice, nonce });
Expand All @@ -58,11 +63,6 @@ async function main() {
nonce++;
}

if (cmd.onlyVerifier) {
await deployer.deployVerifier(create2Salt, { gasPrice, nonce });
return;
}

// Deploy diamond upgrade init contract if needed
const diamondUpgradeContractVersion = cmd.diamondUpgradeInit || 1;
if (diamondUpgradeContractVersion) {
Expand Down

0 comments on commit d55ea62

Please sign in to comment.