From f611e5380d93ad2d32f83d4feaeeee1081c7d39d Mon Sep 17 00:00:00 2001 From: The Dark Jester Date: Mon, 2 Jun 2025 09:35:57 +0100 Subject: [PATCH] use common variable name for plonk verifier name (#1071) --- contracts/docs/operational.md | 4 ++-- contracts/scripts/operational/tasks/setVerifierAddressTask.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/docs/operational.md b/contracts/docs/operational.md index 96a6b9ab..3dbd66b8 100644 --- a/contracts/docs/operational.md +++ b/contracts/docs/operational.md @@ -198,7 +198,7 @@ Parameters that should be filled either in .env or passed as CLI arguments: | VERIFIER_PROOF_TYPE | true | uint256 | Verifier Proof type ("0" - Full Verifier, "1" - Full-Large Verifier, "2" - Light Verifier). If ommited in the .env, it must be provided as CLI argument using the `--verifier-proof-type` flag| | | LINEA_ROLLUP_ADDRESS | true | address | Proxy contract address. If ommited in the .env, it must be provided as CLI argument using the `--proxy-address` flag| | VERIFIER_ADDRESS | true | address | Verifier Address. If ommited in the .env, it must be provided as CLI argument using the `--verifier-address` flag| -| VERIFIER_NAME | true | address | Verifier Name. If ommited in the .env, it must be provided as CLI argument using the `--verifier-name` flag| +| PLONKVERIFIER_NAME | true | address | Verifier Name. If ommited in the .env, it must be provided as CLI argument using the `--plonk-verifier-name` flag|
@@ -217,7 +217,7 @@ npx hardhat setVerifierAddress \ --verifier-proof-type \ --proxy-address
\ --verifier-address
\ ---verifier-name \ +--plonk-verifier-name \ --network sepolia ``` diff --git a/contracts/scripts/operational/tasks/setVerifierAddressTask.ts b/contracts/scripts/operational/tasks/setVerifierAddressTask.ts index 04624fab..1be7a710 100644 --- a/contracts/scripts/operational/tasks/setVerifierAddressTask.ts +++ b/contracts/scripts/operational/tasks/setVerifierAddressTask.ts @@ -34,7 +34,7 @@ task("setVerifierAddress", "Sets the verifier address on a Message Service contr const proofType = getTaskCliOrEnvValue(taskArgs, "verifierProofType", "VERIFIER_PROOF_TYPE"); // todo rename this once checking it doesn't break anything else let LineaRollupAddress = getTaskCliOrEnvValue(taskArgs, "proxyAddress", "LINEA_ROLLUP_ADDRESS"); - const verifierName = getTaskCliOrEnvValue(taskArgs, "verifierName", "VERIFIER_NAME"); + const verifierName = getTaskCliOrEnvValue(taskArgs, "plonkVerifierName", "PLONKVERIFIER_NAME"); if (LineaRollupAddress === undefined) { LineaRollupAddress = (await get("LineaRollup")).address; @@ -43,7 +43,7 @@ task("setVerifierAddress", "Sets the verifier address on a Message Service contr let verifierAddress = getTaskCliOrEnvValue(taskArgs, "verifierAddress", "VERIFIER_ADDRESS"); if (verifierAddress === undefined) { if (verifierName === undefined) { - throw "Please specify a verifier name e.g. --verifier-name PlonkVerifierForDataAggregation"; + throw "Please specify a verifier name e.g. --plonk-verifier-name PlonkVerifierForDataAggregation"; } verifierAddress = (await get(verifierName)).address; }