mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Always require a contract/sourceName in CompilerStack
This commit is contained in:
@@ -951,9 +951,10 @@ void CommandLineInterface::handleAst(string const& _argStr)
|
||||
for (auto const& sourceCode: m_sourceCodes)
|
||||
asts.push_back(&m_compiler->ast(sourceCode.first));
|
||||
map<ASTNode const*, eth::GasMeter::GasConsumption> gasCosts;
|
||||
if (m_compiler->runtimeAssemblyItems())
|
||||
// FIXME: shouldn't this be done for every contract?
|
||||
if (m_compiler->runtimeAssemblyItems(""))
|
||||
gasCosts = GasEstimator::breakToStatementLevel(
|
||||
GasEstimator::structuralEstimation(*m_compiler->runtimeAssemblyItems(), asts),
|
||||
GasEstimator::structuralEstimation(*m_compiler->runtimeAssemblyItems(""), asts),
|
||||
asts
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user