Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typographical errors #1979

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/website/src/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function generateToC(dir: string, prefix = ""): string {
}

/**
* A function that insert a index page
* A function that insert an index page
* @param dir - the directory to insert an index page
* @param sidebarProps - including title, description, label, and position
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: PoseidonFuncs
sidebar_label: PoseidonFuncs
---

A interface for poseidon hash functions
An interface for poseidon hash functions

## Indexable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ whether the two ballots are equal

▸ **hash**(): `bigint`

Generate an hash of this ballot
Generate a hash of this ballot

#### Returns

Expand Down
2 changes: 1 addition & 1 deletion packages/circuits/ts/proofs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { cleanThreads, isArm } from "./utils";

/**
* Generate a zk-SNARK proof
* @dev if running on a intel chip we use rapidsnark for
* @dev if running on an intel chip we use rapidsnark for
* speed - on the other hand if running on ARM we need to use
* snark and a WASM witness
* @param inputs - the inputs to the circuit
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/ts/utils/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const storeContractAddress = async (
/**
* Read a contract address from the local address store file
* @param contractName - the name of the contract
* @returns the contract address or a undefined if it does not exist
* @returns the contract address or an undefined if it does not exist
*/
export const readContractAddress = async (contractName: string, network = "default"): Promise<string> => {
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/domainobjs/ts/__tests__/ballot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("Ballot", () => {
});

describe("hash", () => {
it("should produce an hash of the ballot", () => {
it("should produce a hash of the ballot", () => {
const b = new Ballot(0, 2);
const h = b.hash();
expect(h).to.not.eq(null);
Expand Down
2 changes: 1 addition & 1 deletion packages/domainobjs/ts/ballot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Ballot {
}

/**
* Generate an hash of this ballot
* Generate a hash of this ballot
* @returns The hash of the ballot
*/
hash = (): bigint => {
Expand Down
2 changes: 1 addition & 1 deletion packages/domainobjs/ts/commands/PCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class PCommand {
const nonce = extract(p, 150);
const pollId = extract(p, 200);

// create new public key but allow it to be invalid (as when passing an mismatched
// create new public key but allow it to be invalid (as when passing a mismatched
// encPubKey, a message will not decrypt resulting in potentially invalid public keys)
const newPubKey = new PubKey([decrypted[1], decrypted[2]], true);
const salt = decrypted[3];
Expand Down
Loading