Releases: NomicFoundation/hardhat
Hardhat v2.0.9
This release adds support for forking the Kovan and xDAI networks. Plus:
- The
eth_signTypedData_v4
RPC method is now supported and theeth_signTypedData
was removed since its EIP is not finished. - An edge case with
console.log
was fixed (see #1182)
hardhat-etherscan v2.1.1
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
This is release includes the following improvements and bug fixes:
Hardhat v2.0.7
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.
Hardhat v2.0.6
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
hardhat-etherscan v2.1.0
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
hardhat-ethers v2.0.1
This release fixes some issues in the @nomiclabs/hardhat-ethers
plugin:
Hardhat v2.0.4
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: