Skip to content

Commit

Permalink
TestArbos11To32Upgrade use L1
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Dec 17, 2024
1 parent 61ab0c7 commit 5dc83ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion system_tests/arbos_upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,21 @@ func TestArbos11To32Upgrade(t *testing.T) {
finalVersion := uint64(32)

builder := NewNodeBuilder(ctx).
DefaultConfig(t, false).
DefaultConfig(t, true).
WithArbOSVersion(initialVersion)
cleanup := builder.Build(t)
defer cleanup()

auth := builder.L2Info.GetDefaultTransactOpts("Owner", ctx)

// makes Owner a chain owner
arbDebug, err := precompilesgen.NewArbDebug(types.ArbDebugAddress, builder.L2.Client)
Require(t, err)
tx, err := arbDebug.BecomeChainOwner(&auth)
Require(t, err)
_, err = EnsureTxSucceeded(ctx, builder.L2.Client, tx)
Require(t, err)

// deploys test contract
_, tx, contract, err := mocksgen.DeployArbOS11To32UpgradeTest(&auth, builder.L2.Client)
Require(t, err)
Expand Down

0 comments on commit 5dc83ac

Please sign in to comment.