From 8f0fcdfad90d689a293c78f0459890847a64d3c7 Mon Sep 17 00:00:00 2001 From: Mullapudi Pruthvik Date: Thu, 12 Sep 2024 19:35:49 +0530 Subject: [PATCH] chore: update script to deploy v4 contracts Ticket: COIN-1712 --- hardhat.config.ts | 4 ++-- package.json | 2 +- scripts/deploy.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 9ba923a..4e7c5e8 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -135,11 +135,11 @@ const config: HardhatUserConfig = { }, tavaxc: { url: 'https://api.avax-test.network/ext/C/rpc', - accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`] + accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`] }, avaxc: { url: 'https://api.avax.network/ext/bc/C/rpc', - accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`] + accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`] } }, gasReporter: { diff --git a/package.json b/package.json index 57efbd2..53fac50 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "test" }, "scripts": { - "deploy-prod": "hardhat run scripts/deployV1FactoryContracts.ts --network", + "deploy-prod": "hardhat run scripts/deploy.ts --network", "deploy-test": "hardhat run scripts/deploy.ts --network", "test": "hardhat test", "coverage": "hardhat coverage", diff --git a/scripts/deploy.ts b/scripts/deploy.ts index 6bb350f..eebffe0 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -119,8 +119,8 @@ async function main() { case 43113: eip1559GasParams.gasLimit = 3000000; walletImplementationContractName = 'WalletSimple'; - forwarderContractName = 'Forwarder'; - forwarderFactoryContractName = 'ForwarderFactory'; + forwarderContractName = 'ForwarderV4'; + forwarderFactoryContractName = 'ForwarderFactoryV4'; contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`; break; }