f-o-a-m / chanterelle

Chanterelle -- a more functional truffle
80 stars 13 forks source link

Compilation stops when empty solidity file is provided #117

Open charlescrain opened 4 years ago

charlescrain commented 4 years ago

This is an odd case which I only found because I included a bunch of imports into a single solidity file to generate ABIs for the imports. (A hack in truffle). The following is a simple example with only 1 import but the main point is that there is no contract definition and thus no ABIs generated:

// Sample.sol
pragma solidity ^0.4.24;

import "openzeppelin-solidity/contracts/token/ERC721/IERC721.sol";

If this file is included as one of the modules in chanterelle.json, compilation will stop after it even tho it is successful.