From 077dbfd10d0dc46956690e0b91cc119c520bdf40 Mon Sep 17 00:00:00 2001 From: Tisamenus Date: Sat, 13 Nov 2021 20:35:58 +0100 Subject: [PATCH] try with infura --- .env.example | 2 +- hardhat.config.js | 4 ++-- test/v1/governance.v1.test.js | 2 +- test/v2/all.governance.v2.test.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 5eba1ba..bf733e1 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ ETHERSCAN_KEY= -ALCHEMY_KEY_MAINNET= +INFURA_KEY= use_latest_block=false \ No newline at end of file diff --git a/hardhat.config.js b/hardhat.config.js index 61f4627..9a38a8b 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -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, }, diff --git a/test/v1/governance.v1.test.js b/test/v1/governance.v1.test.js index c2d250b..f30c864 100644 --- a/test/v1/governance.v1.test.js +++ b/test/v1/governance.v1.test.js @@ -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, }, }, diff --git a/test/v2/all.governance.v2.test.js b/test/v2/all.governance.v2.test.js index 282a409..99bf4d0 100644 --- a/test/v2/all.governance.v2.test.js +++ b/test/v2/all.governance.v2.test.js @@ -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, }, },