diff --git a/contracts/tasks/verifier_upgrade.ts b/contracts/tasks/verifier_upgrade.ts index 06bb8974..94ba46b0 100644 --- a/contracts/tasks/verifier_upgrade.ts +++ b/contracts/tasks/verifier_upgrade.ts @@ -5,11 +5,11 @@ import "@nomiclabs/hardhat-waffle"; import { task } from "hardhat/config"; import { ContractFactoryName } from "../src/types"; -// yarn hardhat upgradeVerifier --rollupVersion 0 --startBatchIndex 0 --multipleVersionRollupVerifier 0x0165878a594ca255338adfa4d48449f69242eb8f --network l1 +// yarn hardhat upgradeVerifier --rollupversion 0 --startbatchindex 0 --multipleversionrollupverifier 0x0165878a594ca255338adfa4d48449f69242eb8f --network l1 task("upgradeVerifier") - .addParam("rollupVersion") - .addParam("startBatchIndex") - .addParam("multipleVersionRollupVerifier") + .addParam("rollupversion") + .addParam("startbatchindex") + .addParam("multipleversionrollupverifier") .setAction(async (taskArgs, hre) => { const config = hre.deployConfig @@ -25,9 +25,9 @@ task("upgradeVerifier") // add verifier to MultipleVersionRollupVerifier const MultipleVersionRollupVerifierFactoryName = ContractFactoryName.MultipleVersionRollupVerifier const MultipleVersionRollupVerifierFactory = await hre.ethers.getContractFactory(MultipleVersionRollupVerifierFactoryName) - const MultipleVersionRollupVerifier = MultipleVersionRollupVerifierFactory.attach(taskArgs.multipleVersionRollupVerifier) + const MultipleVersionRollupVerifier = MultipleVersionRollupVerifierFactory.attach(taskArgs.multipleversionrollupverifier) - const res = await MultipleVersionRollupVerifier.updateVerifier(taskArgs.rollupVersion, taskArgs.startBatchIndex, contract.address.toLocaleLowerCase()) + const res = await MultipleVersionRollupVerifier.updateVerifier(taskArgs.rollupversion, taskArgs.startbatchindex, contract.address.toLocaleLowerCase()) const receipt = await res.wait() console.log(`receipt status : ${receipt.status}`)