From a9fa2658d8690f18aa14c599a305cf59a5cd4e3c Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 17 Jan 2019 20:08:17 +0100 Subject: Add helper to show if contract can be deployed. --- libsolidity/interface/CompilerStack.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libsolidity/interface/CompilerStack.cpp') diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index fc33f755..9e4da62d 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -800,11 +800,7 @@ void CompilerStack::compileContract( { solAssert(m_stackState >= AnalysisSuccessful, ""); - if ( - _otherCompilers.count(&_contract) || - !_contract.annotation().unimplementedFunctions.empty() || - !_contract.constructorIsPublic() - ) + if (_otherCompilers.count(&_contract) || !_contract.canBeDeployed()) return; for (auto const* dependency: _contract.annotation().contractDependencies) compileContract(*dependency, _otherCompilers); -- cgit v1.2.3