JoinColony / solcover

Code coverage for solidity
MIT License
64 stars 8 forks source link

Empty contract bodies break ContractOrLibraryStatement parsing #61

Closed cgewecke closed 7 years ago

cgewecke commented 7 years ago

zeppelin-solidity now has an empty bodied contract that looks like this:

pragma solidity ^0.4.8;

import "./HasNoEther.sol";
import "./HasNoTokens.sol";
import "./HasNoContracts.sol";

contract NoOwner is HasNoEther, HasNoTokens, HasNoContracts {
}

which breaks parse.js here .

Fix for this and a coverage unit test for the case are pushed to truffle3 branch in this commit

area commented 7 years ago

Fixed in solidity-coverage, I believe.