Skip to content

Commit

Permalink
fix: max data for different parent chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Nov 3, 2024
1 parent 2dfbb6d commit 878be75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pkg/rollup/rollup_creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ func (r *RollupCreator) CreateRollup(
deploymentParams.Config = config
deploymentParams.BatchPoster = batchPoster
deploymentParams.Validators = validators
deploymentParams.MaxDataSize = types.DefaultRollupCreatorRollupDeploymentParams.MaxDataSize
if parentChainId == 1 || parentChainId == 11155111 {
deploymentParams.MaxDataSize = types.DefaultL2MaxDataSize
}
if parentChainId == 421614 {
deploymentParams.MaxDataSize = types.DefaultL3MaxDataSize
}
deploymentParams.NativeToken = types.DefaultRollupCreatorRollupDeploymentParams.NativeToken
deploymentParams.DeployFactoriesToL2 = true
deploymentParams.MaxFeePerGasForRetryables = types.DefaultRollupCreatorRollupDeploymentParams.MaxFeePerGasForRetryables
Expand Down
Loading

0 comments on commit 878be75

Please sign in to comment.