Skip to content

Commit 0c0d13b

Browse files
committed
update test l2 fork genesis
1 parent 5c544c2 commit 0c0d13b

File tree

5 files changed

+49
-27
lines changed

5 files changed

+49
-27
lines changed

playground/components.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type RollupBoost struct {
2727
func (r *RollupBoost) Apply(manifest *Manifest) {
2828
service := manifest.NewService("rollup-boost").
2929
WithImage("docker.io/flashbots/rollup-boost").
30-
WithTag("v0.7.12").
30+
WithTag("v0.7.12-rc1").
3131
WithArgs(
3232
"--rpc-host", "0.0.0.0",
3333
"--rpc-port", `{{Port "authrpc" 8551}}`,

playground/genesis_op_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/ethereum/go-ethereum/common"
99
)
1010

11-
func TestOpGenesisIshtmus(t *testing.T) {
12-
data, err := os.ReadFile("./testcases/l2_genesis_ishtmus.json")
11+
func TestOpGenesisJovian(t *testing.T) {
12+
data, err := os.ReadFile("./testcases/l2_genesis_jovian.json")
1313
if err != nil {
1414
t.Fatalf("failed to read file: %v", err)
1515
}
@@ -23,7 +23,7 @@ func TestOpGenesisIshtmus(t *testing.T) {
2323
t.Fatalf("failed to convert to op block: %v", err)
2424
}
2525

26-
expected := common.HexToHash("0x6c2f6ce3e748bd0b0717a48e5e3d223258a7d0135bc95f758fc90f6e44813ab9")
26+
expected := common.HexToHash("0x8b526e01dd4d0c4d2b9949bc88f7077171cd52481e64da8c54adde8c7e476e7a")
2727
if opBlock.Hash() != expected {
2828
t.Fatalf("expected hash %s, got %s", expected.Hex(), opBlock.Hash().Hex())
2929
}

playground/manifest.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,11 @@ func ReadManifest(outputFolder string) (*Manifest, error) {
621621
}
622622

623623
func (svcManager *Manifest) RunContenderIfEnabled() {
624+
// Contender is optional; skip when context or contender config is missing
625+
if svcManager == nil || svcManager.ctx == nil || svcManager.ctx.Contender == nil {
626+
return
627+
}
628+
624629
if svcManager.ctx.Contender.Enabled {
625630
svcManager.AddService(svcManager.ctx.Contender.Contender())
626631
}

0 commit comments

Comments
 (0)