mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 15:38:06 -05:00
use common variable name for plonk verifier name (#1071)
This commit is contained in:
@@ -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|
|
||||
|
||||
<br />
|
||||
|
||||
@@ -217,7 +217,7 @@ npx hardhat setVerifierAddress \
|
||||
--verifier-proof-type <uint256> \
|
||||
--proxy-address <address> \
|
||||
--verifier-address <address> \
|
||||
--verifier-name <string> \
|
||||
--plonk-verifier-name <string> \
|
||||
--network sepolia
|
||||
```
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user