Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Mar 22, 2024
1 parent 17fe12c commit 0fe01f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bold
9 changes: 7 additions & 2 deletions staker/challenge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/offchainlabs/nitro/solgen/go/ospgen"
"github.com/offchainlabs/nitro/validator"
"github.com/offchainlabs/nitro/validator/server_arb"
"github.com/offchainlabs/nitro/validator/server_common"
)

func DeployOneStepProofEntry(t *testing.T, auth *bind.TransactOpts, client bind.ContractBackend) common.Address {
Expand Down Expand Up @@ -159,7 +160,9 @@ func runChallengeTest(
backend.Commit()

asserterRun, err := server_arb.NewExecutionRun(ctx,
func(context.Context) (server_arb.MachineInterface, error) { return asserterMachine, nil },
func(context.Context, ...server_common.MachineLoaderOpt) (server_arb.MachineInterface, error) {
return asserterMachine, nil
},
&server_arb.DefaultMachineCacheConfig)
Require(t, err)

Expand All @@ -175,7 +178,9 @@ func runChallengeTest(
Require(t, err)

challengerRun, err := server_arb.NewExecutionRun(ctx,
func(context.Context) (server_arb.MachineInterface, error) { return challengerMachine, nil },
func(context.Context, ...server_common.MachineLoaderOpt) (server_arb.MachineInterface, error) {
return challengerMachine, nil
},
&server_arb.DefaultMachineCacheConfig)
Require(t, err)
challengerManager, err := NewExecutionChallengeManager(
Expand Down

0 comments on commit 0fe01f3

Please sign in to comment.