Skip to content

Commit

Permalink
chore: report nested object key in err
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefbiiko committed Mar 1, 2024
1 parent c03855b commit 40a3186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function serialize(
const secs = []
for (var [k, v] of Object.entries(inputs)) {
if (!Array.isArray(v) && typeof v === "object") {
throw Error("nested objects not supported")
throw Error("nested objects not supported ." + k)
}
if (publics[k] === true) {
pubs.push(toBigInt(v))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gnark-witnejs",
"type": "module",
"version": "0.0.1",
"version": "0.0.2",
"description": "gnark witness calculator in js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 40a3186

Please sign in to comment.