diff --git a/lib/instrumenter.js b/lib/instrumenter.js index cc2c424..eafc897 100644 --- a/lib/instrumenter.js +++ b/lib/instrumenter.js @@ -19,9 +19,15 @@ instrumenter.prePosition = function prePosition(expression) { }; instrumenter.instrumentAssignmentExpression = function instrumentAssignmentExpression(contract, expression) { + + // This is suspended for 0.5.0 which tries to accomodate the new `emit` keyword. + // Solc is not allowing us to use the construction `emit SomeEvent()` within the parens :/ + return; + // -------------------------------------------------------------------------------------------- + // The only time we instrument an assignment expression is if there's a conditional expression on // the right - if (expression.right.type === 'ConditionalExpression') { + /*if (expression.right.type === 'ConditionalExpression') { if (expression.left.type === 'DeclarativeExpression' || expression.left.type === 'Identifier') { // Then we need to go from bytes32 varname = (conditional expression) // to bytes32 varname; (,varname) = (conditional expression) @@ -42,7 +48,7 @@ instrumenter.instrumentAssignmentExpression = function instrumentAssignmentExpre console.log(err, contract, expression.left); process.exit(); } - } + }*/ }; instrumenter.instrumentConditionalExpression = function instrumentConditionalExpression(contract, expression) {