Skip to content

Commit

Permalink
Merge pull request #33 from Layr-Labs/epociask--fix-blob-verifier-inj…
Browse files Browse the repository at this point in the history
…ection

fix: Update blob verifier injection pattern
  • Loading branch information
epociask authored Nov 21, 2024
2 parents 53dcf37 + 2bddc8f commit 4c1c41b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion scripts/local-deployment/deployCreatorAndCreateRollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ async function main() {
deployerWallet,
true,
contracts.rollupCreator.address,
feeToken
feeToken,
contracts.eigenDARollupManager.address,
)

if (!result) {
Expand Down
14 changes: 11 additions & 3 deletions scripts/rollupCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export async function createRollup(
signer: Signer,
isDevDeployment: boolean,
rollupCreatorAddress: string,
feeToken: string
feeToken: string,
eigenDARollupManager: string
): Promise<{
rollupCreationResult: RollupCreationResult
chainInfo: ChainInfo
Expand Down Expand Up @@ -101,7 +102,11 @@ export async function createRollup(
// Call the createRollup function
console.log('Calling createRollup to generate a new rollup ...')
const deployParams = isDevDeployment
? await _getDevRollupConfig(feeToken, validatorWalletCreator)
? await _getDevRollupConfig(
eigenDARollupManager,
feeToken,
validatorWalletCreator
)
: {
config: config.rollupConfig,
validators: config.validators,
Expand All @@ -111,6 +116,7 @@ export async function createRollup(
maxFeePerGasForRetryables: MAX_FER_PER_GAS,
batchPosters: config.batchPosters,
batchPosterManager: config.batchPosterManager,
eigenDARollupManager: eigenDARollupManager,
}

const createRollupTx = await rollupCreator.createRollup(deployParams, {
Expand Down Expand Up @@ -229,6 +235,7 @@ export async function createRollup(
}

async function _getDevRollupConfig(
rollupManager: string,
feeToken: string,
validatorWalletCreator: string
) {
Expand Down Expand Up @@ -329,6 +336,7 @@ async function _getDevRollupConfig(
maxFeePerGasForRetryables: MAX_FER_PER_GAS,
batchPosters: batchPosters,
batchPosterManager: batchPosterManager,
eigenDARollupManager: rollupManager,
}

function _createValidatorAddress(
Expand Down Expand Up @@ -363,4 +371,4 @@ async function _getPrescaledAmount(
}

return amount
}
}

0 comments on commit 4c1c41b

Please sign in to comment.