Skip to content

Commit

Permalink
fix hinter interface
Browse files Browse the repository at this point in the history
  • Loading branch information
greged93 committed Nov 6, 2023
1 parent e66f9c9 commit 8441dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/hintrunner/hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ func (hint Uint512DivModByUint256) String() string {
return "Uint512DivModByUint256"
}

func (hint Uint512DivModByUint256) Execute(vm *VM.VirtualMachine) error {
func (hint Uint512DivModByUint256) Execute(vm *VM.VirtualMachine, _ *HintRunnerContext) error {
dividend0, err := hint.dividend0.Resolve(vm)
if err != nil {
return fmt.Errorf("resolve dividend0 operand %s: %v", hint.dividend0, err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/hintrunner/hint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ func TestUint512DivModByUint256(t *testing.T) {
remainder1: dstRemainder1,
}

err = hint.Execute(vm)
err = hint.Execute(vm, nil)
require.Nil(t, err)

quotient0 := &f.Element{}
Expand Down Expand Up @@ -646,6 +646,6 @@ func TestUint512DivModByUint256DivisionByZero(t *testing.T) {
remainder1: dstRemainder1,
}

err = hint.Execute(vm)
err = hint.Execute(vm, nil)
require.ErrorContains(t, err, "division by zero")
}

0 comments on commit 8441dde

Please sign in to comment.