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

added delay in the deployment scripts for the transactions #8

Merged
merged 1 commit into from
May 16, 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
3 changes: 2 additions & 1 deletion packages/hardhat/deploy/08_maci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir

console.log(`The MACI contract is deployed at ${await maci.getAddress()}`);

await gatekeeper.setMaciInstance(await maci.getAddress());
const tx = await gatekeeper.setMaciInstance(await maci.getAddress());
await tx.wait(1);
};

export default deployContracts;
Expand Down
3 changes: 2 additions & 1 deletion packages/hardhat/deploy/09_vk_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
const tallyVkNonQvParam = tallyVkNonQv!.asContractParam() as IVerifyingKeyStruct;
const processVkNonQvParam = processVkNonQv!.asContractParam() as IVerifyingKeyStruct;

await vkRegistry.setVerifyingKeysBatch(
const tx = await vkRegistry.setVerifyingKeysBatch(
stateTreeDepth,
intStateTreeDepth,
messageTreeDepth,
Expand All @@ -59,6 +59,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
[processVkParam, processVkNonQvParam],
[tallyVkParam, tallyVkNonQvParam],
);
await tx.wait(1);
};

export default deployContracts;
Expand Down
3 changes: 2 additions & 1 deletion packages/hardhat/deploy/10_configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
const filePath = "./coordinatorKeyPair.json";
const coordinatorKeypair = fetchOrCreateKeyPair(filePath);

await maci.setConfig(
const tx = await maci.setConfig(
{
intStateTreeDepth: 1,
messageTreeSubDepth: 1,
Expand All @@ -44,6 +44,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
await verifier.getAddress(),
await vkRegistry.getAddress(),
);
await tx.wait(1);
};

export default deployContracts;
Expand Down
Loading