Skip to content

Commit

Permalink
Fix warning under Hardhat 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Sep 6, 2022
1 parent c3809dc commit cdbd93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.5.16 (unreleased)
* Fix warning under Hardhat 2.11.

## 0.5.15 (2021-10-05)

* Fix `snapshot.restore` when used multiple times.
Expand Down
2 changes: 1 addition & 1 deletion src/expectRevert.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function checkRevertReasonSupport (provider) {

const nodeInfo = await web3.eth.getNodeInfo();
const ganacheVersion = /TestRPC\/v([\w.-]+)\/ethereum-js/.exec(nodeInfo);
const hardhatVersion = /HardhatNetwork\/([\w.-]+)\/(ethereumjs-vm|@ethereumjs\/vm)/.exec(nodeInfo);
const hardhatVersion = /HardhatNetwork\/([\w.-]+)\/((@nomicfoundation\/)?ethereumjs-vm|@ethereumjs\/vm)/.exec(nodeInfo);

const warn = function (msg) {
console.log(`\
Expand Down

0 comments on commit cdbd93c

Please sign in to comment.