Skip to content

Commit 5676d54

Browse files
committed
updated waits
1 parent 533c391 commit 5676d54

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
]
5151
},
5252
mocha: {
53-
timeout: 100000
53+
timeout: 1000000
5454
},
5555
gasReporter: {
5656
currency: 'USD',

helpers/contracts.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ const getCompiledContractFactory = (ethers, contract) => {
5050
};
5151

5252
const deployContract = async (ethers, contractName, signer, args, txParams) => {
53-
console.log('Deploying', contractName);
53+
// console.log('Deploying', contractName);
5454
const Factory = await getCompiledContractFactory(ethers, contractName);
5555
const contract = await Factory.connect(signer).deploy(...args, txParams);
56-
await contract.deployTransaction.wait(2);
57-
console.log('Deployed');
56+
await contract.deployTransaction.wait();
57+
// console.log('Deployed');
5858
return contract;
5959
};
6060

@@ -71,7 +71,7 @@ const deployProxyContract = async (
7171
initializerDef,
7272
txParams,
7373
) => {
74-
console.log('Deploying proxy', contractName);
74+
// console.log('Deploying proxy', contractName);
7575
const ProxyAdminFactory = await getCompiledContractFactory(
7676
ethers,
7777
'ProxyAdmin',
@@ -83,8 +83,8 @@ const deployProxyContract = async (
8383
initializerDef,
8484
txParams,
8585
);
86-
await contract.deployTransaction.wait(2);
87-
console.log('Deployed');
86+
await contract.deployTransaction.wait();
87+
// console.log('Deployed');
8888

8989
const defaultProxyAdmin = ProxyAdminFactory.connect(signer).attach(
9090
await getAdminAddress(signer.provider, contract.address),
@@ -94,7 +94,7 @@ const deployProxyContract = async (
9494
newProxyAdmin.address,
9595
txParams,
9696
);
97-
await refChangeTx.wait(2);
97+
await refChangeTx.wait();
9898

9999
return contract;
100100
};

0 commit comments

Comments
 (0)