Skip to content

Commit e561f3a

Browse files
Fix configuration
1 parent b5380cb commit e561f3a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

op-e2e/config/init.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ func initAllocType(root string, allocType AllocType) {
287287
}
288288
}
289289

290-
if allocType == AllocTypeEspressoWithoutEnclave {
290+
// Configure all Espresso allocation types
291+
if allocType == AllocTypeEspresso || allocType == AllocTypeEspressoWithoutEnclave || allocType == AllocTypeEspressoWithEnclave {
291292
batcherPk, err := crypto.HexToECDSA(ESPRESSO_PRE_APPROVED_BATCHER_PRIVATE_KEY)
292293
if err != nil {
293294
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)