@noir-lang/backend_barretenberg
Advanced tools
Comparing version 0.19.4-1ef8546.nightly to 0.19.4-47d4725.nightly
@@ -5,3 +5,3 @@ "use strict"; | ||
function flattenPublicInputs(publicInputs) { | ||
const publicInputIndices = [...publicInputs.keys()].sort(); | ||
const publicInputIndices = [...publicInputs.keys()].sort((a, b) => a - b); | ||
const flattenedPublicInputs = publicInputIndices.map((index) => publicInputs.get(index)); | ||
@@ -29,3 +29,3 @@ return flattenedPublicInputs; | ||
// The elements of this array should correspond to the elements of `flattenedPublicInputs` so that we can build up a `WitnessMap`. | ||
const public_input_witnesses = [...new Set(public_parameter_witnesses.concat(return_value_witnesses))].sort(); | ||
const public_input_witnesses = [...new Set(public_parameter_witnesses.concat(return_value_witnesses))].sort((a, b) => a - b); | ||
const publicInputs = new Map(); | ||
@@ -32,0 +32,0 @@ public_input_witnesses.forEach((witness_index, index) => { |
export function flattenPublicInputs(publicInputs) { | ||
const publicInputIndices = [...publicInputs.keys()].sort(); | ||
const publicInputIndices = [...publicInputs.keys()].sort((a, b) => a - b); | ||
const flattenedPublicInputs = publicInputIndices.map((index) => publicInputs.get(index)); | ||
@@ -23,3 +23,3 @@ return flattenedPublicInputs; | ||
// The elements of this array should correspond to the elements of `flattenedPublicInputs` so that we can build up a `WitnessMap`. | ||
const public_input_witnesses = [...new Set(public_parameter_witnesses.concat(return_value_witnesses))].sort(); | ||
const public_input_witnesses = [...new Set(public_parameter_witnesses.concat(return_value_witnesses))].sort((a, b) => a - b); | ||
const publicInputs = new Map(); | ||
@@ -26,0 +26,0 @@ public_input_witnesses.forEach((witness_index, index) => { |
@@ -6,3 +6,3 @@ { | ||
], | ||
"version": "0.19.4-1ef8546.nightly", | ||
"version": "0.19.4-47d4725.nightly", | ||
"packageManager": "yarn@3.5.1", | ||
@@ -29,2 +29,3 @@ "license": "(MIT OR Apache-2.0)", | ||
"clean": "rm -rf ./lib", | ||
"test": "mocha --timeout 25000 --exit --config ./.mocharc.json", | ||
"prettier": "prettier 'src/**/*.ts'", | ||
@@ -38,3 +39,3 @@ "prettier:fix": "prettier --write 'src/**/*.ts' 'test/**/*.ts'", | ||
"@aztec/bb.js": "0.16.0", | ||
"@noir-lang/types": "0.19.4-1ef8546.nightly", | ||
"@noir-lang/types": "0.19.4-47d4725.nightly", | ||
"fflate": "^0.8.0" | ||
@@ -45,7 +46,10 @@ }, | ||
"@types/prettier": "^3", | ||
"chai": "^4.3.8", | ||
"eslint": "^8.50.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"mocha": "^10.2.0", | ||
"prettier": "3.0.3", | ||
"ts-node": "^10.9.1", | ||
"typescript": "5.1.5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29131
9
+ Added@noir-lang/noirc_abi@0.19.4-47d4725.nightly(transitive)
+ Added@noir-lang/types@0.19.4-47d4725.nightly(transitive)
- Removed@noir-lang/noirc_abi@0.19.4-1ef8546.nightly(transitive)
- Removed@noir-lang/types@0.19.4-1ef8546.nightly(transitive)