try with infura

This commit is contained in:
Tisamenus 2021-11-13 20:35:58 +01:00
parent f12ac4cf3e
commit 077dbfd10d
4 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,3 @@
ETHERSCAN_KEY=
ALCHEMY_KEY_MAINNET=
INFURA_KEY=
use_latest_block=false

View File

@ -46,7 +46,7 @@ module.exports = {
networks: {
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY_MAINNET}`,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
blockNumber: 13042331,
},
initialBaseFeePerGas: 5,
@ -56,7 +56,7 @@ module.exports = {
timeout: 120000,
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY_MAINNET}`,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: ['900e9f0e8ce24c022026649c48a059fb6ffa0a2523811d797b47d789bf106def'], // random pk off keys.lol
timeout: 2147483647,
},

View File

@ -933,7 +933,7 @@ describe('Governance tests', () => {
await ethers.provider.send('hardhat_reset', [
{
forking: {
jsonRpcUrl: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY_MAINNET}`,
jsonRpcUrl: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
blockNumber: process.env.use_latest_block == 'true' ? undefined : 13042331,
},
},

View File

@ -788,7 +788,7 @@ describe('Start of tests', () => {
await ethers.provider.send('hardhat_reset', [
{
forking: {
jsonRpcUrl: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY_MAINNET}`,
jsonRpcUrl: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
blockNumber: process.env.use_latest_block == 'true' ? undefined : 13211966,
},
},