diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 04:49:58 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-19 06:54:32 +0800 |
commit | 2ce35b77becab2395dce218b106a7ce904a1b141 (patch) | |
tree | a495989b6c5eabeb1620bc71fef36fad252e6d6c /solc/CommandLineInterface.cpp | |
parent | 039cc25b1fd875e9f4cfd0f0649f2b4ed67640e1 (diff) | |
download | dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.gz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.bz2 dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.lz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.xz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.zst dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.zip |
Implement CompilerStack.lastContractName()
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 3ab564c3..c4241a9e 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -952,9 +952,9 @@ void CommandLineInterface::handleAst(string const& _argStr) asts.push_back(&m_compiler->ast(sourceCode.first)); map<ASTNode const*, eth::GasMeter::GasConsumption> gasCosts; // FIXME: shouldn't this be done for every contract? - if (m_compiler->runtimeAssemblyItems("")) + if (m_compiler->runtimeAssemblyItems(m_compiler->lastContractName())) gasCosts = GasEstimator::breakToStatementLevel( - GasEstimator::structuralEstimation(*m_compiler->runtimeAssemblyItems(""), asts), + GasEstimator::structuralEstimation(*m_compiler->runtimeAssemblyItems(m_compiler->lastContractName()), asts), asts ); |