mirror of
https://github.com/yashgo0018/maci-wrapper.git
synced 2026-05-04 03:00:44 -04:00
Merge pull request #8 from yashgo0018/main
added delay in the deployment scripts for the transactions
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user