Skip to content

Releases: NomicFoundation/hardhat

Hardhat v2.0.9

09 Feb 20:21
9a519a7
Compare
Choose a tag to compare

This release adds support for forking the Kovan and xDAI networks. Plus:

  • The eth_signTypedData_v4 RPC method is now supported and the eth_signTypedData was removed since its EIP is not finished.
  • An edge case with console.log was fixed (see #1182)

hardhat-etherscan v2.1.1

27 Jan 20:38
6cbdaf8
Compare
Choose a tag to compare

This release includes some improvements to the hardhat-etherscan plugin.

Ambiguous contracts

The plugin tries to automatically detect the contract that is being verified, but sometimes you can have two different contracts that generate the same bytecode. In previous versions this meant that you couldn't verify those contracts without modifying one of them. Now you can use the --contract parameter to specify which of the ambiguous contracts should be used.

Undetectable libraries

The plugin also tries to detect which libraries are linked to the contract that is being verified, but there are some edge cases where this is not possible (for example, if a library is only used in the constructor). Now you can use the --libraries parameter to pass these undetectable libraries. Learn more here.

Binance Smart Chain

We added support for BSC and its testnet. Huge thanks to @purperen and @guagualvcha who contributed to this.

Hardhat v2.0.8 released

14 Jan 22:53
Compare
Choose a tag to compare

This is release includes the following improvements and bug fixes:

  • Fix the cost of SSTORE in Hardhat Network when it runs in fork mode (#1172)
  • Improves the error message of HH9 (#1165)
  • Returns the correct values of transactions' r and s in Hardhat Network (#1158)
  • Fix the resolution of hardhat/console.sol in projects that have a hardhat directory (#1162)

Hardhat v2.0.7

05 Jan 14:41
4f24717
Compare
Choose a tag to compare

This release makes console.sol work with solc 0.8.x, but this comes with a small breaking change: the console.logByte function doesn't exist anymore, since the byte type was removed. If you run into this issue, you just need to replace all your calls to logByte with logBytes1.

Besides that, this release adds support for hardhat-shorthand, a new tool we just released. It's an NPM package that installs a globally accessible binary called hh that runs the project's locally installed hardhat and supports shell autocompletion for tasks. Check the guide to learn more.

hh gif

Hardhat v2.0.6

22 Dec 17:44
3aa48d7
Compare
Choose a tag to compare

This PR includes several improvements to Hardhat Network (PRs: #1083, #1086, #1100).

Most of these changes are internal and backward compatible. The exception is #1083, which changes the chainId used by the forked Hardhat Network. Before this version, when you forked the mainnet the chain id used was 1. Now it will use the default chain id (31337). You can change this via the Hardhat Network config.

Besides that, the names of the build info files are now deterministic (#1090).

Hardhat v2.0.5

09 Dec 23:29
8b13051
Compare
Choose a tag to compare

This release fixes a couple of issues in Hardhat Network (#1048, #1088) and improves the error messages that are shown when an out of gas error causes a transaction to revert.

hardhat-etherscan v2.1.0

02 Dec 18:32
3467c13
Compare
Choose a tag to compare

This release includes a frequently requested feature for this plugin: to minimize the number of source files that are sent to Etherscan for verification.

Now hardhat-etherscan will do its best to only send the file of the contract and its dependencies. It is possible (but unlikely) that this produces a different bytecode than when the whole project is compiled; if that happens, the plugin will detect it and all the files in the project will be used.

Thanks to @kartojal for doing the first steps towards this!

hardhat-waffle v2.0.1

01 Dec 18:27
04cacf0
Compare
Choose a tag to compare

This release fixes a couple of issues (#1020, #1061) related to some missing chai matchers in our waffle plugin. Notice that this also bumps the peer dependency on ethereum-waffle to at least 3.2.0.

Thanks to @dahifi for working on this!

hardhat-ethers v2.0.1

27 Nov 21:59
69ee900
Compare
Choose a tag to compare

This release fixes some issues in the @nomiclabs/hardhat-ethers plugin:

  • The ethers provider works better when hardhat_reset is used (#1015)
  • A bug related to the getContractAt method and linked contracts was fixed (#950)
  • Fixed a problem that caused the plugin to seem to hang when certain errors were triggered (#1037)

Hardhat v2.0.4

27 Nov 21:54
5bbde31
Compare
Choose a tag to compare

This release changes the cache strategy used by Hardhat: instead of using the modification time, the hash of the content of the involved files is used (PR #1006). This should let you do things like taking advantage of your CI's cache (let us know if you do and if it works!)

Besides that, this release:

  • Adds support for EIP-1898 (PR #948). Thanks @fubhy for this!
  • Fixes a group of issues (#1004, #1005, #990, #1043) related to forking.
  • Adds the mixhash field to returned blocks (issue #1011).
  • Improves error messages when a project cannot be compiled (PR #989).