From 1b79bb54a818c50f6fa71015c21c9749ca91af7b Mon Sep 17 00:00:00 2001 From: cgewecke Date: Wed, 11 Apr 2018 07:48:09 -0700 Subject: [PATCH] Comment out assignment instrumentation logic --- lib/instrumenter.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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) {