Skip to content

Commit

Permalink
Merge pull request #1323 from momodaka/typo
Browse files Browse the repository at this point in the history
fix(cli): fix cli vkRegistry typo
  • Loading branch information
ctrlc03 authored Mar 25, 2024
2 parents 65a743b + f4caaf0 commit ee17109
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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

0 comments on commit ee17109

Please sign in to comment.