Skip to content

Commit

Permalink
added delay in the deployment scripts for the transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed May 16, 2024
1 parent 2ed310d commit 84c8566
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 84c8566

Please sign in to comment.