diff options
author | chriseth <c@ethdev.com> | 2016-04-07 02:55:46 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-04-07 02:56:00 +0800 |
commit | f227050c203fd0da70fcefbbecc922fd16045aa6 (patch) | |
tree | 40ad7d2e00f051368349bdfc017a0d4b455d8313 /solc/CommandLineInterface.cpp | |
parent | 193b1c940ce3e21d52e2cbdd253c1d7cb820fa06 (diff) | |
download | dexon-solidity-f227050c203fd0da70fcefbbecc922fd16045aa6.tar.gz dexon-solidity-f227050c203fd0da70fcefbbecc922fd16045aa6.tar.zst dexon-solidity-f227050c203fd0da70fcefbbecc922fd16045aa6.zip |
Make solidity independent from ethcore.
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index d82a2442..7f7655f2 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -35,6 +35,7 @@ #include <libdevcore/CommonData.h> #include <libdevcore/CommonIO.h> #include <libevmasm/Instruction.h> +#include <libevmasm/GasMeter.h> #include <libsolidity/interface/Version.h> #include <libsolidity/parsing/Scanner.h> #include <libsolidity/parsing/Parser.h> @@ -240,7 +241,6 @@ void CommandLineInterface::handleMeta(DocumentationType _type, string const& _co void CommandLineInterface::handleGasEstimation(string const& _contract) { - eth::EVMSchedule schedule; // TODO: make it relevant to the SealEngine/EnvInfo. using Gas = GasEstimator::GasConsumption; if (!m_compiler->assemblyItems(_contract) && !m_compiler->runtimeAssemblyItems(_contract)) return; @@ -250,8 +250,8 @@ void CommandLineInterface::handleGasEstimation(string const& _contract) Gas gas = GasEstimator::functionalEstimation(*items); u256 bytecodeSize(m_compiler->runtimeObject(_contract).bytecode.size()); cout << "construction:" << endl; - cout << " " << gas << " + " << (bytecodeSize * schedule.createDataGas) << " = "; - gas += bytecodeSize * schedule.createDataGas; + cout << " " << gas << " + " << (bytecodeSize * eth::GasCosts::createDataGas) << " = "; + gas += bytecodeSize * eth::GasCosts::createDataGas; cout << gas << endl; } if (eth::AssemblyItems const* items = m_compiler->runtimeAssemblyItems(_contract)) |