Skip to content

Commit

Permalink
mini fix
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Aug 18, 2024
1 parent 9da77e0 commit da36ac5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployment/v2/4_createRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit da36ac5

Please sign in to comment.