Skip to content

Commit 4d79e02

Browse files
Trying to fix configuration issue for e2e tests.
1 parent 5b17934 commit 4d79e02

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

op-e2e/config/init.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -278,17 +278,16 @@ func initAllocType(root string, allocType AllocType) {
278278
intent := defaultIntent(root, loc, deployerAddr, allocType)
279279
if allocType == AllocTypeAltDA {
280280
intent.Chains[0].DangerousAltDAConfig = genesis.AltDADeployConfig{
281-
UseAltDA: true,
282-
DACommitmentType: "KeccakCommitment",
283-
DAChallengeWindow: 16,
284-
DAResolveWindow: 16,
285-
DABondSize: 1000000,
286-
DAResolverRefundPercentage: 0,
281+
UseAltDA: true,
282+
DACommitmentType: "KeccakCommitment",
283+
DAChallengeWindow: 16,
284+
DAResolveWindow: 16,
285+
DABondSize: 1000000,
287286
}
288287
}
289288

290289
// Configure Espresso allocation types
291-
if allocType == AllocTypeEspressoWithoutEnclave || allocType == AllocTypeEspressoWithEnclave {
290+
if allocType == AllocTypeEspresso || allocType == AllocTypeEspressoWithoutEnclave || allocType == AllocTypeEspressoWithEnclave {
292291
batcherPk, err := crypto.HexToECDSA(ESPRESSO_PRE_APPROVED_BATCHER_PRIVATE_KEY)
293292
if err != nil {
294293
panic(fmt.Errorf("failed to parse batcher private key: %w", err))

op-e2e/system/e2esys/setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ func (cfg SystemConfig) Start(t *testing.T, startOpts ...StartOption) (*System,
10211021
return nil, fmt.Errorf("failed to parse pre-approved batcher private key: %w", err)
10221022
}
10231023
espressoCfg := espresso.CLIConfig{
1024-
Enabled: (cfg.AllocType == config.AllocTypeEspressoWithEnclave) || (cfg.AllocType == config.AllocTypeEspressoWithoutEnclave),
1024+
Enabled: (cfg.AllocType == config.AllocTypeEspresso) || (cfg.AllocType == config.AllocTypeEspressoWithEnclave) || (cfg.AllocType == config.AllocTypeEspressoWithoutEnclave),
10251025
PollInterval: 250 * time.Millisecond,
10261026
L1URL: sys.EthInstances[RoleL1].UserRPC().RPC(),
10271027
RollupL1URL: sys.EthInstances[RoleL1].UserRPC().RPC(),

0 commit comments

Comments
 (0)