Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/develop' into brian/permisions-p…
Browse files Browse the repository at this point in the history
…recondition
  • Loading branch information
Geometer1729 committed Oct 10, 2024
2 parents 38d2796 + 32a44af commit ec37763
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/provable-generic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ function createDerivers<Field>(): {

if (Array.isArray(typeObj)) {
if (!Array.isArray(obj)) {
if (typeof obj === 'object') {
return typeObj.map((t, i) => toFields(t, obj[i])).flat();
}
throw Error(`Expected an array for type, but got ${typeof obj}`);
}
if (typeObj.length !== obj.length) {
Expand Down

0 comments on commit ec37763

Please sign in to comment.