Skip to content

Commit 6c1223f

Browse files
feat(eth-multisig-v4): deploy polygon amoy test contracts
2 parents 6b6625f + 7165ee4 commit 6c1223f

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

hardhat.config.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ const config: HardhatUserConfig = {
7777
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
7878
},
7979
tmatic: {
80-
//https://polygon-mumbai.g.alchemy.com/
81-
url: `https://polygon-mumbai.g.alchemyapi.io/v2/${ALCHEMY_POLYGON_API_KEY}`,
80+
// https://polygon-amoy.g.alchemy.com
81+
url: `https://polygon-amoy-bor-rpc.publicnode.com`,
8282
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
8383
},
8484
bsc: {
@@ -122,7 +122,7 @@ const config: HardhatUserConfig = {
122122
holesky: `${ETHERSCAN_API_KEY}`,
123123
//polygon
124124
polygon: `${POLYGONSCAN_API_KEY}`,
125-
polygonMumbai: `${POLYGONSCAN_API_KEY}`,
125+
polygonAmoy: `${POLYGONSCAN_API_KEY}`,
126126
bscTestnet: `${BSCSCAN_API_KEY}`,
127127
bsc: `${BSCSCAN_API_KEY}`,
128128
// arbitrum
@@ -175,6 +175,14 @@ const config: HardhatUserConfig = {
175175
apiURL: 'https://block-explorer-api.sepolia.zksync.dev/api',
176176
browserURL: 'https://sepolia.explorer.zksync.io'
177177
}
178+
},
179+
{
180+
network: 'polygonAmoy',
181+
chainId: 80002,
182+
urls: {
183+
apiURL: 'https://api-amoy.polygonscan.com/api',
184+
browserURL: 'https://amoy.polygonscan.com'
185+
}
178186
}
179187
]
180188
},

scripts/deploy.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ async function main() {
3636
//matic
3737
case 137:
3838
//tmatic
39-
case 80001:
39+
case 80002:
4040
walletImplementationContractName = 'PolygonWalletSimple';
41+
forwarderContractName = 'Forwarder';
42+
forwarderFactoryContractName = 'ForwarderFactory';
4143
break;
4244
// bsc
4345
case 56:
@@ -128,7 +130,7 @@ async function main() {
128130
walletImplementationContractName,
129131
walletSimple.address,
130132
[],
131-
`contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`
133+
`contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`
132134
);
133135
await verifyContract('WalletFactory', walletFactory.address, [
134136
walletSimple.address

0 commit comments

Comments
 (0)