Skip to content

Commit

Permalink
chore(deps): bump circomkit from 0.1.0 to 0.2.1 (#1480)
Browse files Browse the repository at this point in the history
* chore(deps): bump circomkit from 0.1.0 to 0.2.1

Bumps [circomkit](https://github.com/erhant/circomkit) from 0.1.0 to 0.2.1.
- [Release notes](https://github.com/erhant/circomkit/releases)
- [Commits](erhant/circomkit@v0.1.0...v0.2.1)

---
updated-dependencies:
- dependency-name: circomkit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: ensure latest circomkit version works

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ctrlc03 <[email protected]>
  • Loading branch information
dependabot[bot] and ctrlc03 authored May 23, 2024
1 parent 0abbebb commit 9cb775f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"dependencies": {
"@zk-kit/circuits": "^0.4.0",
"circomkit": "^0.1.0",
"circomkit": "^0.2.1",
"circomlib": "^2.0.5",
"maci-core": "1.2.2",
"maci-crypto": "1.2.2",
Expand Down
5 changes: 2 additions & 3 deletions circuits/ts/__tests__/MessageValidator.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { expect } from "chai";
import { type WitnessTester } from "circomkit";
import { SignalValueType } from "circomkit/dist/types/circuit";
import { genRandomSalt } from "maci-crypto";
import { PCommand, Keypair } from "maci-domainobjs";

Expand Down Expand Up @@ -58,7 +57,7 @@ describe("MessageValidator circuit", function test() {
const signature = command.sign(privKey);

circuitInputs = {
stateTreeIndex: 0n as SignalValueType,
stateTreeIndex: 0n,
numSignUps: 1n,
voteOptionIndex: 0n,
maxVoteOptions: 1n,
Expand Down Expand Up @@ -204,7 +203,7 @@ describe("MessageValidator circuit", function test() {
const signature = command.sign(privKey);

circuitInputs = {
stateTreeIndex: 0n as SignalValueType,
stateTreeIndex: 0n,
numSignUps: 1n,
voteOptionIndex: 0n,
maxVoteOptions: 1n,
Expand Down
6 changes: 5 additions & 1 deletion circuits/ts/__tests__/utils/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { type SignalValueType } from "circomkit/dist/types/circuit";
/** An integer value is a numerical string, a number, or a bigint. */
export type IntegerValueType = `${number}` | number | bigint;

/** A signal value is a number, or an array of numbers (recursively). */
export type SignalValueType = IntegerValueType | SignalValueType[];

/**
* Circuit inputs for testing the MessageValidator circuit
Expand Down
15 changes: 9 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 9cb775f

Please sign in to comment.