diff --git a/deployment/v2/4_createRollup.ts b/deployment/v2/4_createRollup.ts index dca543353..5c3e9d0d0 100644 --- a/deployment/v2/4_createRollup.ts +++ b/deployment/v2/4_createRollup.ts @@ -192,16 +192,18 @@ async function main() { // Add a new rollup type with timelock let rollupVerifierType; let genesisFinal; + let programVKey; + if (consensusContract == "PolygonPessimisticConsensus") { rollupVerifierType = 1; genesisFinal = ethers.ZeroHash; + programVKey = createRollupParameters.programVKey || ethers.ZeroHash; } else { rollupVerifierType = 0; genesisFinal = genesis.root; + programVKey = ethers.ZeroHash; } - const programVKey = createRollupParameters.programVKey || ethers.ZeroHash; - await ( await rollupManagerContract.addNewRollupType( PolygonconsensusContract.target,