Skip to content

Commit

Permalink
Check error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjac committed Oct 16, 2023
1 parent cb19cf1 commit 2924655
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/hintrunner/hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ func (hint LinearSplit) Execute(vm *VM.VirtualMachine) error {
return fmt.Errorf("resolve value operand %s: %w", hint.value, err)
}
valueField, err := value.FieldElement()
if err != nil {
return err
}
scalar, err := hint.scalar.Resolve(vm)
if err != nil {
return fmt.Errorf("resolve scalar operand %s: %w", hint.scalar, err)
Expand Down

0 comments on commit 2924655

Please sign in to comment.