diff --git a/pkg/hintrunner/hint.go b/pkg/hintrunner/hint.go index 7fd121154..97984da5e 100644 --- a/pkg/hintrunner/hint.go +++ b/pkg/hintrunner/hint.go @@ -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) diff --git a/pkg/hintrunner/hint_test.go b/pkg/hintrunner/hint_test.go index cc650c404..33244b3d8 100644 --- a/pkg/hintrunner/hint_test.go +++ b/pkg/hintrunner/hint_test.go @@ -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{} @@ -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") }