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.