diff --git a/l1-contracts/scripts/deploy.ts b/l1-contracts/scripts/deploy.ts index d6af12d55..efedfc07c 100644 --- a/l1-contracts/scripts/deploy.ts +++ b/l1-contracts/scripts/deploy.ts @@ -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 }); @@ -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) {