From cc12cd207c696641bd7dc1d48ed085d34616b600 Mon Sep 17 00:00:00 2001 From: Gregory Edison Date: Mon, 6 Nov 2023 09:23:24 +0100 Subject: [PATCH] fix hinter interface --- pkg/hintrunner/hint.go | 2 +- pkg/hintrunner/hint_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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") }