Skip to content

Commit

Permalink
fix: remove mandatory confirmations
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Oct 14, 2023
1 parent b12109b commit 76c0e5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions evm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const deployCreate = async (wallet, contractJson, args = [], options = {}, verif
const factory = new ContractFactory(contractJson.abi, contractJson.bytecode, wallet);

const contract = await factory.deploy(...args, { ...options });
await contract.deployTransaction.wait(chain.confirmations || 2);
await contract.deployTransaction.wait(chain.confirmations);

if (verifyOptions?.env) {
sleep(10000);
Expand Down Expand Up @@ -68,7 +68,7 @@ const deployCreate2 = async (
salt,
args,
gasOptions,
chain.confirmations || 2,
chain.confirmations,
);
} else {
contract = { address: await predictContractConstant(constAddressDeployerAddress, wallet, contractJson, salt, args) };
Expand Down Expand Up @@ -107,7 +107,7 @@ const deployCreate3 = async (
key,
args,
gasOptions,
chain.confirmations || 2,
chain.confirmations,
);
} else {
contract = { address: await getCreate3Address(create3DeployerAddress, wallet, key) };
Expand Down

0 comments on commit 76c0e5b

Please sign in to comment.