Skip to content

Commit

Permalink
fix: skip wallet implementation deployment
Browse files Browse the repository at this point in the history
Ticket: COIN-1712
  • Loading branch information
mullapudipruthvik committed Oct 9, 2024
1 parent f40f4ae commit 092ff00
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions scripts/deployV1FactoryContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function main() {

const gasParams = {
gasPrice: feeData.gasPrice!.mul('2'),
gasLimit: 5000000
gasLimit: 4500000
};
const walletTxCount = await walletDeployer.getTransactionCount();

Expand All @@ -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();
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 092ff00

Please sign in to comment.