Merge pull request #8 from yashgo0018/main

added delay in the deployment scripts for the transactions
This commit is contained in:
Yash Goyal
2024-05-17 00:01:49 +05:30
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@@ -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;

View File

@@ -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,
@@ -59,6 +59,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
[processVkParam, processVkNonQvParam],
[tallyVkParam, tallyVkNonQvParam],
);
await tx.wait(1);
};
export default deployContracts;

View File

@@ -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,
@@ -44,6 +44,7 @@ const deployContracts: DeployFunction = async function (hre: HardhatRuntimeEnvir
await verifier.getAddress(),
await vkRegistry.getAddress(),
);
await tx.wait(1);
};
export default deployContracts;