@@ -42,7 +42,7 @@ async function main() {
4242 if ( txCount === 1 || txCount === 3 ) {
4343 throw Error ( 'Cannot deploy contracts, please update the script' ) ;
4444 }
45-
45+ console . log ( 'txCount: ' + txCount ) ;
4646 if ( txCount === 0 ) {
4747 deployWalletContracts = true ;
4848 deployForwarderContracts = true ;
@@ -56,6 +56,7 @@ async function main() {
5656 let forwarderFactoryContractName = 'ForwarderFactory' ;
5757 let contractPath = `contracts/WalletSimple.sol:WalletSimple` ;
5858 const chainId = await deployer . getChainId ( ) ;
59+ console . log ( 'chainId: ' , chainId ) ;
5960 switch ( chainId ) {
6061 // https://chainlist.org/
6162 //eth
@@ -138,6 +139,21 @@ async function main() {
138139 forwarderFactoryContractName = 'ForwarderFactoryV4' ;
139140 contractPath = `contracts/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
140141 break ;
142+ // world
143+ case 480 :
144+ case 4801 :
145+ console . log (
146+ 'Setting World gasLimit,maxFeePerGas, maxPriorityFeePerGas...'
147+ ) ;
148+ const GWEI = BigNumber . from ( '1000000000' ) ; // 1
149+ eip1559GasParams . gasLimit = 3000000 ;
150+ eip1559GasParams . maxFeePerGas = GWEI . mul ( 5 ) ;
151+ eip1559GasParams . maxPriorityFeePerGas = GWEI . mul ( 2 ) ;
152+ walletImplementationContractName = 'WalletSimple' ;
153+ forwarderContractName = 'ForwarderV4' ;
154+ forwarderFactoryContractName = 'ForwarderFactoryV4' ;
155+ contractPath = `contracts/${ walletImplementationContractName } .sol:${ walletImplementationContractName } ` ;
156+ break ;
141157 //Monad
142158 case 10143 : // TODO: WIN-5225: add chain id once mainnet is release
143159 //Flare
@@ -203,17 +219,25 @@ async function main() {
203219 console . log (
204220 'Deploying wallet contract called: ' + walletImplementationContractName
205221 ) ;
222+ console . log ( '📦 Getting contract factory...' ) ;
206223 const WalletSimple = await ethers . getContractFactory (
207224 walletImplementationContractName
208225 ) ;
226+ console . log ( '⛽ Gas params:' , gasParams ) ;
227+ const balance = await deployer . getBalance ( ) ;
228+ console . log ( '💰 Balance:' , ethers . utils . formatEther ( balance ) , 'ETH' ) ;
209229 const walletSimple = await WalletSimple . deploy ( gasParams ) ;
230+ console . log ( '📤 TX hash:' , walletSimple . deployTransaction . hash ) ;
231+ console . log ( '⏳ Waiting for confirmation...' ) ;
232+ await walletSimple . deployTransaction . wait ( 1 ) ;
210233 await walletSimple . deployed ( ) ;
211234 output . walletImplementation = walletSimple . address ;
212235 console . log ( 'WalletSimple deployed at ' + walletSimple . address ) ;
213236
214237 const WalletFactory = await ethers . getContractFactory (
215238 walletFactoryContractName
216239 ) ;
240+ console . log ( '🚀 Sending deployment TX...' ) ;
217241 const walletFactory = await WalletFactory . deploy (
218242 walletSimple . address ,
219243 gasParams
0 commit comments