Skip to content

Commit

Permalink
add: hardhat node support brownie
Browse files Browse the repository at this point in the history
  • Loading branch information
seinmyung25 committed Jan 23, 2024
1 parent 95563a2 commit 963e419
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ const config: HardhatUserConfig = {
},
],
},
networks: {
hardhat: {
hardfork: "london",
// base fee of 0 allows use of 0 gas price when testing
initialBaseFeePerGas: 0,
// brownie expects calls and transactions to throw on revert
throwOnTransactionFailures: true,
throwOnCallFailures: true
}
}
};

export default config;

0 comments on commit 963e419

Please sign in to comment.