Check if constructor is public or not.

This commit is contained in:
chriseth
2017-01-20 19:22:39 +01:00
parent df4ef74199
commit 0ef460461a
3 changed files with 13 additions and 2 deletions
+5 -1
View File
@@ -624,7 +624,11 @@ void CompilerStack::compileContract(
map<ContractDefinition const*, eth::Assembly const*>& _compiledContracts
)
{
if (_compiledContracts.count(&_contract) || !_contract.annotation().isFullyImplemented)
if (
_compiledContracts.count(&_contract) ||
!_contract.annotation().isFullyImplemented ||
!_contract.annotation().hasPublicConstructor
)
return;
for (auto const* dependency: _contract.annotation().contractDependencies)
compileContract(*dependency, _compiledContracts);