Skip to content

Commit

Permalink
Addressing review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
shimkiv committed Aug 1, 2024
1 parent 5925904 commit fe63c18
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/provable/foreign-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { ForeignField as FF, Field3 } from './gadgets/foreign-field.js';
import { assert } from './gadgets/common.js';
import { l3, l } from './gadgets/range-check.js';
import { ProvablePureExtended } from './types/struct.js';
import { isField } from './core/field-constructor.js';

// external API
export { createForeignField };
Expand Down Expand Up @@ -112,11 +111,6 @@ class ForeignField {
}
// Field3
if (Array.isArray(x)) {
if (x.some((limb) => !isField(limb))) {
throw new Error(
`ForeignField constructor: invalid 'Field3' element. Please provide valid Field elements.`
);
}
this.value = x;
return;
}
Expand Down

0 comments on commit fe63c18

Please sign in to comment.