Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rpalakkal committed Jan 18, 2024
1 parent 21c73d8 commit f4676ab
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 47 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/halo2-browser-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Build halo2-wasm
working-directory: halo2-wasm
run: |
rustup toolchain install nightly-2023-08-12-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-2023-08-12-x86_64-unknown-linux-gnu
cargo build --target=x86_64-unknown-linux-gnu --verbose
- name: Set all packages to local and build
working-directory: ./
run: ./scripts/toggleLocal.sh ci
- name: Build halo2-lib-js
working-directory: halo2-lib-js
run: |
Expand All @@ -43,4 +40,5 @@ jobs:
run: npm run test:vk
- name: Test halo2-lib-js constant equivalence
working-directory: halo2-lib-js
run: npm run test:constant
run: npm run test:constant

6 changes: 3 additions & 3 deletions cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axiom-crypto/halo2-wasm-cli",
"version": "0.1.7-alpha.0",
"version": "0.3.2",
"description": "Halo2 Javascript library",
"main": "index.js",
"scripts": {
Expand All @@ -18,8 +18,8 @@
"author": "Intrinsic Technologies",
"license": "ISC",
"dependencies": {
"@axiom-crypto/halo2-lib-js": "0.3.0-rc.0",
"@axiom-crypto/halo2-wasm": "0.3.0-rc2.0",
"@axiom-crypto/halo2-lib-js": "0.3.2",
"@axiom-crypto/halo2-wasm": "0.3.3",
"commander": "^11.1.0",
"typescript": "^5.2.2"
},
Expand Down
18 changes: 9 additions & 9 deletions cli/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions halo2-lib-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"test:constant": "./tests/test_constant.sh"
},
"keywords": [
"axiom",
"axiom",
"ethereum",
"zero knowledge",
"zk",
Expand Down Expand Up @@ -39,4 +39,4 @@
"publishConfig": {
"directory": "dist"
}
}
}
8 changes: 2 additions & 6 deletions halo2-lib-js/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion halo2-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
"devDependencies": {
"@types/prettier": "1.18.2"
}
}
}
28 changes: 9 additions & 19 deletions halo2-repl/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions halo2-wasm/js/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ export abstract class CircuitScaffold extends BaseCircuitScaffold {
this.shouldTime = options?.shouldTime ?? false;
this.loadedVk = false;
this.halo2wasm.config(this.config);
this.setContext({getKzgParams})
}
}
1 change: 1 addition & 0 deletions halo2-wasm/js/web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export abstract class CircuitScaffold extends BaseCircuitScaffold {
this.config = options?.config ?? { ...DEFAULT_CIRCUIT_CONFIG };
this.shouldTime = options?.shouldTime ?? false;
this.loadedVk = false;
this.setContext({getKzgParams})
}

async setup(numThreads: number) {
Expand Down

0 comments on commit f4676ab

Please sign in to comment.