fix: network issues

This commit is contained in:
nftchance 2022-10-11 02:18:30 -05:00
parent 7e3d6796a1
commit f06f11ec50
2 changed files with 7 additions and 3 deletions

View File

@ -147,7 +147,7 @@ module.exports = {
gasPrice: 5000000000, // 5 gwei
},
mumbai: {
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.POLYGONSCAN_API_KEY}`,
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.POLYGON_ALCHEMY_KEY}`,
accounts: [`0x${process.env.POLYGON_PRIVATE_KEY}`],
gas: 3000000,
gasPrice: 100000000000 // 100 gwei
@ -158,8 +158,8 @@ module.exports = {
gasPrice: 50000000000, // 50 gwei
},
polygon: {
url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.POLYGONSCAN_API_KEY}`,
accounts: [`0x${process.env.PRIVATPOLYGON_PRIVATE_KEYE_KEY}`],
url: `https://polygon-mainnet.g.alchemy.com/v2/${process.env.POLYGON_ALCHEMY_KEY}`,
accounts: [`0x${process.env.POLYGON_PRIVATE_KEY}`],
gasPrice: 'auto'
},
}

View File

@ -7,6 +7,8 @@ services:
context: ./contracts
volumes:
- .:/contracts/code
env_file:
- ./.env
ports:
- "8545:8545"
restart: unless-stopped
@ -17,6 +19,8 @@ services:
context: ./contracts
volumes:
- .:/contracts/code
env_file:
- ./.env
restart: "no"
# Run the postgres server
badger_db: