@@ -50,11 +50,11 @@ const getCompiledContractFactory = (ethers, contract) => {
50
50
} ;
51
51
52
52
const deployContract = async ( ethers , contractName , signer , args , txParams ) => {
53
- console . log ( 'Deploying' , contractName ) ;
53
+ // console.log('Deploying', contractName);
54
54
const Factory = await getCompiledContractFactory ( ethers , contractName ) ;
55
55
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');
58
58
return contract ;
59
59
} ;
60
60
@@ -71,7 +71,7 @@ const deployProxyContract = async (
71
71
initializerDef ,
72
72
txParams ,
73
73
) => {
74
- console . log ( 'Deploying proxy' , contractName ) ;
74
+ // console.log('Deploying proxy', contractName);
75
75
const ProxyAdminFactory = await getCompiledContractFactory (
76
76
ethers ,
77
77
'ProxyAdmin' ,
@@ -83,8 +83,8 @@ const deployProxyContract = async (
83
83
initializerDef ,
84
84
txParams ,
85
85
) ;
86
- await contract . deployTransaction . wait ( 2 ) ;
87
- console . log ( 'Deployed' ) ;
86
+ await contract . deployTransaction . wait ( ) ;
87
+ // console.log('Deployed');
88
88
89
89
const defaultProxyAdmin = ProxyAdminFactory . connect ( signer ) . attach (
90
90
await getAdminAddress ( signer . provider , contract . address ) ,
@@ -94,7 +94,7 @@ const deployProxyContract = async (
94
94
newProxyAdmin . address ,
95
95
txParams ,
96
96
) ;
97
- await refChangeTx . wait ( 2 ) ;
97
+ await refChangeTx . wait ( ) ;
98
98
99
99
return contract ;
100
100
} ;
0 commit comments