Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Comments

chore(deps-dev): bump hardhat from 2.0.11 to 2.4.1#204

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/hardhat-2.4.1
Closed

chore(deps-dev): bump hardhat from 2.0.11 to 2.4.1#204
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/hardhat-2.4.1

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2021

Bumps hardhat from 2.0.11 to 2.4.1.

Release notes

Sourced from hardhat's releases.

Hardhat v2.4.1

This release removes the warning shown by Hardhat when Solidity 0.8.x is used. Keep in mind that we currently support Solidity versions up to 0.8.4. Check the Solidity Support section of our docs to learn more.

Hardhat v2.4.0

This release adds support for Solidity 0.8.x, as well as multiple new features for customizing the behavior of the Hardhat Network.

New error messages

Some error messages returned by Hardhat have changed. If you have tests that check the exact message of a Hardhat error, you may need to update them.

For example, before this release a require(false, "this is the reason") statement would've generated this error message:

Error: VM Exception while processing transaction: revert this is the reason

In this new version, the error message will be:

Error: VM Exception while processing transaction: reverted with reason string 'this is the reason'

You'll also get different error messages for panic errors (for example, if you are using solidity 0.8.0 and divide by zero) and for custom errors. See below to learn more about these new features.

New supported solidity features

Custom errors

Hardhat now recognizes custom errors. For example, given this contract:

contract Foo {
  error MyCustomError(uint code, string message);
function test() public {
revert MyCustomError(42, "failed for some reason");
}
}

If you deploy Foo and call its test method, you'll now get a stack trace like this:

Error: VM Exception while processing transaction: reverted with custom error 'MyCustomError(42, "failed for some reason")'
    at Foo.test (contracts/Foo.sol:5)

Keep in mind that Hardhat can only recognize custom errors that are defined within your project. If you use mainnet forking and call some external contract that reverts with a custom error, Hardhat won't be able to parse it, and it will show an unrecognized error instead.

Panic codes

... (truncated)

Commits
  • 080421b Bump hardhat-core to 2.4.1
  • 4bcafdd Merge pull request #1578 from paco0x/update-solidity-to-0.8
  • 134301b Update solidity version in sample project
  • 4ede550 Merge pull request #1558 from nomiclabs/bump-supported-solidity-version
  • 5822e70 Fix tests and check supported solc versions more tightly
  • 7b7266f Merge pull request #1548 from nomiclabs/pr-template
  • f5acf95 Update .github/PULL_REQUEST_TEMPLATE.md
  • d8b5c6a Update .github/PULL_REQUEST_TEMPLATE.md
  • a0be7d4 Bump the supported solidity version range
  • 2fe6d72 Merge pull request #1526 from RhnSharma/fix-wrong-error-message-setNextBlockT...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [hardhat](https://github.com/nomiclabs/hardhat) from 2.0.11 to 2.4.1.
- [Release notes](https://github.com/nomiclabs/hardhat/releases)
- [Commits](NomicFoundation/hardhat@hardhat-core-v2.0.11...hardhat-core-v2.4.1)

---
updated-dependencies:
- dependency-name: hardhat
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 1, 2021
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 1, 2021

Superseded by #216.

@dependabot dependabot bot closed this Aug 1, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/hardhat-2.4.1 branch August 1, 2021 08:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants