Skip to content

Commit ad46385

Browse files
committed
chore: deploy v4 contracts for polygon and bsc
this pr adds changes to deploy v4 contracts for bsc and polygon testnets Ticket: WP-1803
1 parent 6aff0a5 commit ad46385

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

hardhat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ const config: HardhatUserConfig = {
7979
tmatic: {
8080
// https://polygon-amoy.g.alchemy.com
8181
url: `https://polygon-amoy-bor-rpc.publicnode.com`,
82-
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
82+
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
8383
},
8484
bsc: {
8585
url: `https://bsc-dataseed1.binance.org/`,
8686
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
8787
},
8888
tbsc: {
8989
url: `https://data-seed-prebsc-1-s1.binance.org:8545/`,
90-
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
90+
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
9191
},
9292
tarbeth: {
9393
url: `${QUICKNODE_ARBITRUM_SEPOLIA_API_KEY}`,

scripts/deploy.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@ async function main() {
4040
//tmatic
4141
case 80002:
4242
walletImplementationContractName = 'PolygonWalletSimple';
43-
forwarderContractName = 'Forwarder';
44-
forwarderFactoryContractName = 'ForwarderFactory';
43+
forwarderContractName = 'ForwarderV4';
44+
forwarderFactoryContractName = 'ForwarderFactoryV4';
4545
contractPath = `contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
4646
break;
4747
// bsc
4848
case 56:
4949
// tbsc
5050
case 97:
51-
walletImplementationContractName = 'RecoveryWalletSimple';
52-
walletFactoryContractName = 'RecoveryWalletFactory';
51+
walletImplementationContractName = 'WalletSimple';
52+
forwarderContractName = 'ForwarderV4';
53+
forwarderFactoryContractName = 'ForwarderFactoryV4';
54+
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
5355
break;
5456
// arbeth
5557
case 42161:

0 commit comments

Comments
 (0)