Closed cgewecke closed 7 years ago
Previous fix needed another fix Was crashing on this line in the Chronobank SmartContracts repo:
_getAsset().__process.value(msg.value)(msg.data, msg.sender);
Have added some coverage tests for CallExpressions as well to try to make sure events are being injected correctly.
Fixed in solidity-coverage.
This problem came up covering the ENS contracts. When a contract is instantiated using an address and one of its methods is immediately invoked by chaining - e.g:
the AST will have nested
CallExpression
nodes and the instrumenter will mistakenly inject two statement events:resulting in:
Have a pushed a fix and compilation check unit test for this case to truffle3 branch with this commit