Comment out assignment instrumentation logic

pull/215/head
cgewecke 7 years ago
parent 339b881e71
commit 1b79bb54a8
  1. 10
      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) {

Loading…
Cancel
Save