Skip to content

Commit

Permalink
Use hardhat 2.6.0 and hardhat-deploy-ethers (#440)
Browse files Browse the repository at this point in the history
* Remove smock. Use hardhat-deploy-ethers

* Set an impersonated account's balance to non-zero

* Use address for `hardhat_setBalance` parameter

* Use hardhat 2.6.0 but with berlin as coverage
  • Loading branch information
penandlim authored Aug 12, 2021
1 parent 2a495e5 commit bd51ff6
Show file tree
Hide file tree
Showing 13 changed files with 2,569 additions and 5,790 deletions.
7 changes: 3 additions & 4 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ dotenv.config()
let config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
coverage: {
url: "http://127.0.0.1:8555",
hardhat: {
hardfork: process.env.CODE_COVERAGE ? "berlin" : "london",
},
mainnet: {
url: process.env.ALCHEMY_API,
Expand Down Expand Up @@ -100,12 +100,11 @@ if (process.env.FORK_MAINNET === "true" && config.networks) {
networks: {
...config.networks,
hardhat: {
...config.networks.hardhat,
forking: {
url: process.env.ALCHEMY_API ? process.env.ALCHEMY_API : "",
},
chainId: 1,
hardfork: "london",
gasPrice: "auto",
},
},
external: {
Expand Down
Loading

0 comments on commit bd51ff6

Please sign in to comment.