From 092ff004d22a74de5812795bb253391aa8be4913 Mon Sep 17 00:00:00 2001 From: Mullapudi Pruthvik Date: Wed, 9 Oct 2024 10:47:48 +0530 Subject: [PATCH] fix: skip wallet implementation deployment Ticket: COIN-1712 --- scripts/deployV1FactoryContracts.ts | 42 ++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/scripts/deployV1FactoryContracts.ts b/scripts/deployV1FactoryContracts.ts index 1cf2efd..766d546 100644 --- a/scripts/deployV1FactoryContracts.ts +++ b/scripts/deployV1FactoryContracts.ts @@ -17,7 +17,7 @@ async function main() { const gasParams = { gasPrice: feeData.gasPrice!.mul('2'), - gasLimit: 5000000 + gasLimit: 4500000 }; const walletTxCount = await walletDeployer.getTransactionCount(); @@ -34,27 +34,27 @@ async function main() { console.log(`Self transaction with nonce: ${i} complete`); } - const walletImplementationContractName = 'AvaxcWalletSimple'; + // const walletImplementationContractName = 'AvaxcWalletSimple'; const walletFactoryContractName = 'WalletFactory'; - const WalletImplementation = await ethers.getContractFactory( - walletImplementationContractName, - walletDeployer - ); - const walletImplementation = await WalletImplementation.deploy(gasParams); - await walletImplementation.deployed(); - output.walletImplementation = walletImplementation.address; - console.log( - `${walletImplementationContractName} deployed at ` + - walletImplementation.address - ); + // const WalletImplementation = await ethers.getContractFactory( + // walletImplementationContractName, + // walletDeployer + // ); + // const walletImplementation = await WalletImplementation.deploy(gasParams); + // await walletImplementation.deployed(); + // output.walletImplementation = walletImplementation.address; + // console.log( + // `${walletImplementationContractName} deployed at ` + + // walletImplementation.address + // ); const WalletFactory = await ethers.getContractFactory( walletFactoryContractName, walletDeployer ); const walletFactory = await WalletFactory.deploy( - walletImplementation.address, + '0xE8E847cf573Fc8ed75621660A36AffD18c543d7E', gasParams ); await walletFactory.deployed(); @@ -122,19 +122,19 @@ async function main() { // We have to wait for a minimum of 10 block confirmations before we can call the etherscan api to verify - await walletImplementation.deployTransaction.wait(10); + //await walletImplementation.deployTransaction.wait(10); await walletFactory.deployTransaction.wait(10); await forwarderImplementation.deployTransaction.wait(10); await forwarderFactory.deployTransaction.wait(10); console.log('Done waiting, verifying'); - await verifyContract( - walletImplementationContractName, - walletImplementation.address, - [] - ); + // await verifyContract( + // walletImplementationContractName, + // walletImplementation.address, + // [] + // ); await verifyContract('WalletFactory', walletFactory.address, [ - walletImplementation.address + '0xE8E847cf573Fc8ed75621660A36AffD18c543d7E' ]); await verifyContract(