Skip to content

Commit b17fc76

Browse files
committed
deploy bsc and polygon v4 contracts on mainnet
1 parent 8999d16 commit b17fc76

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

hardhat.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ const config: HardhatUserConfig = {
7474
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT_BACKUP}`]
7575
},
7676
matic: {
77-
url: `https://polygon-mainnet.g.alchemyapi.io/v2/${ALCHEMY_POLYGON_API_KEY}`,
78-
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
77+
url: `https://polygon-rpc.com/`,
78+
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
7979
},
8080
tmatic: {
8181
// https://polygon-amoy.g.alchemy.com
@@ -84,7 +84,7 @@ const config: HardhatUserConfig = {
8484
},
8585
bsc: {
8686
url: `https://bsc-dataseed1.binance.org/`,
87-
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
87+
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
8888
},
8989
tbsc: {
9090
url: `https://data-seed-prebsc-1-s1.binance.org:8545/`,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"test": "test"
1010
},
1111
"scripts": {
12-
"deploy-prod": "hardhat run scripts/deployV1FactoryContracts.ts --network",
13-
"deploy-test": "hardhat run scripts/deployV1FactoryContracts.ts --network",
12+
"deploy-prod": "hardhat run scripts/deploy.ts --network",
13+
"deploy-test": "hardhat run scripts/deploy.ts --network",
1414
"test": "hardhat test",
1515
"coverage": "hardhat coverage",
1616
"solhint": "./node_modules/.bin/solhint --fix 'contracts/**/*.sol'",

scripts/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ async function main() {
3939
case 137:
4040
//tmatic
4141
case 80002:
42-
walletImplementationContractName = 'PolygonWalletSimple';
42+
walletImplementationContractName = 'WalletSimple';
4343
forwarderContractName = 'ForwarderV4';
4444
forwarderFactoryContractName = 'ForwarderFactoryV4';
45-
contractPath = `contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
45+
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
4646
break;
4747
// bsc
4848
case 56:

0 commit comments

Comments
 (0)