aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/CompilerStack.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2019-01-18 03:08:17 +0800
committerchriseth <chris@ethereum.org>2019-01-18 03:36:48 +0800
commita9fa2658d8690f18aa14c599a305cf59a5cd4e3c (patch)
tree7a22383ee804bee3b730db86adb2adf63240b600 /libsolidity/interface/CompilerStack.cpp
parent01ad4bffe7e16251efdf17121479369cabe5f993 (diff)
downloaddexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.tar
dexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.tar.gz
dexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.tar.bz2
dexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.tar.lz
dexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.tar.xz
dexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.tar.zst
dexon-solidity-a9fa2658d8690f18aa14c599a305cf59a5cd4e3c.zip
Add helper to show if contract can be deployed.
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r--libsolidity/interface/CompilerStack.cpp6
1 files changed, 1 insertions, 5 deletions
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);