Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh0g0-1758 committed Aug 6, 2024
1 parent 2ce7608 commit 1e6c86d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/runners/zero/zero_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func BenchmarkRunnerWithFibonacci(b *testing.B) {
panic(err)
}

runner, err := NewRunner(program, hints, true, math.MaxUint64, "plain")
runner, err := NewRunner(program, hints, true, false, math.MaxUint64, "plain")
if err != nil {
panic(err)
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/runners/zero/zero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestSimpleProgram(t *testing.T) {
`)

hints := make(map[uint64][]hinter.Hinter)
runner, err := NewRunner(program, hints, false, math.MaxUint64, "plain")
runner, err := NewRunner(program, hints, false, false, math.MaxUint64, "plain")
require.NoError(t, err)

endPc, err := runner.InitializeMainEntrypoint()
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestStepLimitExceeded(t *testing.T) {
`)

hints := make(map[uint64][]hinter.Hinter)
runner, err := NewRunner(program, hints, false, 3, "plain")
runner, err := NewRunner(program, hints, false, false, 3, "plain")
require.NoError(t, err)

endPc, err := runner.InitializeMainEntrypoint()
Expand Down Expand Up @@ -133,7 +133,7 @@ func TestStepLimitExceededProofMode(t *testing.T) {
// when maxstep = 6, it fails executing the extra step required by proof mode
// when maxstep = 7, it fails trying to get the trace to be a power of 2
hints := make(map[uint64][]hinter.Hinter)
runner, err := NewRunner(program, hints, true, uint64(maxstep), "plain")
runner, err := NewRunner(program, hints, true, false, uint64(maxstep), "plain")
require.NoError(t, err)

err = runner.Run()
Expand Down Expand Up @@ -368,7 +368,7 @@ func createRunner(code string, layoutName string, builtins ...sn.Builtin) ZeroRu
program := createProgramWithBuiltins(code, builtins...)

hints := make(map[uint64][]hinter.Hinter)
runner, err := NewRunner(program, hints, false, math.MaxUint64, layoutName)
runner, err := NewRunner(program, hints, false, false, math.MaxUint64, layoutName)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 1e6c86d

Please sign in to comment.