Skip to content

Commit

Permalink
fix detection of ganache tprereleases etc
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed May 22, 2019
1 parent 34868ca commit 3e0af96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expectRevert.js
Expand Up @@ -26,7 +26,7 @@ if your \'require\' statement doesn\'t have one.');
// Find out if current version of ganache-core supports revert reason i.e >= 2.2.0.
// https://github.com/trufflesuite/ganache-core/releases/tag/v2.2.0
const nodeInfo = await web3.eth.getNodeInfo();
const matches = /TestRPC\/v([0-9.]+)\/ethereum-js/.exec(nodeInfo);
const matches = /TestRPC\/v([\w.-]+)\/ethereum-js/.exec(nodeInfo);

const warn = function (msg) {
console.log(`${colors.white.bgBlack('openzeppelin-test-helpers')} ${colors.black.bgYellow('WARN')} \
Expand Down

0 comments on commit 3e0af96

Please sign in to comment.