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(cli): fix cli vkRegistry typo #1323

Merged
merged 2 commits into from
Mar 25, 2024
Merged
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
4 changes: 2 additions & 2 deletions cli/ts/commands/proveOnChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const proveOnChain = async ({
logError("There is no VkRegistry contract linked to the specified MACI contract.");
}

const vkRegsitryContract = VkRegistryFactory.connect(vkRegistryContractAddress, signer);
const vkRegistryContract = VkRegistryFactory.connect(vkRegistryContractAddress, signer);
const verifierContractAddress = await mpContract.verifier();

if (!(await contractExists(signer.provider!, verifierContractAddress))) {
Expand Down Expand Up @@ -199,7 +199,7 @@ export const proveOnChain = async ({
const messageRootOnChain = await messageAqContract.getMainRoot(Number(treeDepths.messageTreeDepth));

const stateTreeDepth = Number(await maciContract.stateTreeDepth());
const onChainProcessVk = await vkRegsitryContract.getProcessVk(
const onChainProcessVk = await vkRegistryContract.getProcessVk(
stateTreeDepth,
treeDepths.messageTreeDepth,
treeDepths.voteOptionTreeDepth,
Expand Down
8 changes: 4 additions & 4 deletions contracts/tasks/helpers/Prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class Prover {
/**
* VkRegistry contract typechain wrapper
*/
private vkRegsitryContract: VkRegistry;
private vkRegistryContract: VkRegistry;

/**
* Verifier contract typechain wrapper
Expand All @@ -75,7 +75,7 @@ export class Prover {
mpContract,
messageAqContract,
maciContract,
vkRegsitryContract,
vkRegistryContract,
verifierContract,
subsidyContract,
tallyContract,
Expand All @@ -84,7 +84,7 @@ export class Prover {
this.mpContract = mpContract;
this.messageAqContract = messageAqContract;
this.maciContract = maciContract;
this.vkRegsitryContract = vkRegsitryContract;
this.vkRegistryContract = vkRegistryContract;
this.verifierContract = verifierContract;
this.subsidyContract = subsidyContract;
this.tallyContract = tallyContract;
Expand Down Expand Up @@ -119,7 +119,7 @@ export class Prover {

const [messageRootOnChain, onChainProcessVk] = await Promise.all([
this.messageAqContract.getMainRoot(Number(treeDepths[2])),
this.vkRegsitryContract.getProcessVk(
this.vkRegistryContract.getProcessVk(
stateTreeDepth,
treeDepths.messageTreeDepth,
treeDepths.voteOptionTreeDepth,
Expand Down
2 changes: 1 addition & 1 deletion contracts/tasks/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export interface IProverParams {
/**
* VkRegistry contract typechain wrapper
*/
vkRegsitryContract: VkRegistry;
vkRegistryContract: VkRegistry;

/**
* Verifier contract typechain wrapper
Expand Down
4 changes: 2 additions & 2 deletions contracts/tasks/runner/prove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ task("prove", "Command to generate proof and prove the result of a poll on-chain

const maciContractAddress = storage.mustGetAddress(EContracts.MACI, network.name);
const maciContract = await deployment.getContract<MACI>({ name: EContracts.MACI, address: maciContractAddress });
const vkRegsitryContract = await deployment.getContract<VkRegistry>({ name: EContracts.VkRegistry });
const vkRegistryContract = await deployment.getContract<VkRegistry>({ name: EContracts.VkRegistry });
const verifierContract = await deployment.getContract<Verifier>({ name: EContracts.Verifier });

const pollAddress = await maciContract.polls(poll);
Expand Down Expand Up @@ -213,7 +213,7 @@ task("prove", "Command to generate proof and prove the result of a poll on-chain
messageAqContract,
mpContract,
pollContract,
vkRegsitryContract,
vkRegistryContract,
verifierContract,
tallyContract,
subsidyContract,
Expand Down
Loading