|
@@ -10,8 +10,9 @@ export default async promise => {
|
|
// we distinguish this from an actual out of gas event? (The
|
|
// we distinguish this from an actual out of gas event? (The
|
|
// testrpc log actually show an 'invalid jump' event.)
|
|
// testrpc log actually show an 'invalid jump' event.)
|
|
const outOfGas = error.message.search('out of gas') >= 0;
|
|
const outOfGas = error.message.search('out of gas') >= 0;
|
|
|
|
+ const revert = error.message.search('revert') >= 0;
|
|
assert(
|
|
assert(
|
|
- invalidOpcode || outOfGas,
|
|
|
|
|
|
+ invalidOpcode || outOfGas || revert,
|
|
"Expected throw, got '" + error + "' instead",
|
|
"Expected throw, got '" + error + "' instead",
|
|
);
|
|
);
|
|
return;
|
|
return;
|