diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-19 19:57:50 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-28 07:03:35 +0800 |
commit | d71cc66ddeb3f6e91628c019966b5ea107df4a15 (patch) | |
tree | df4077db6b1903a50ebd4c196d5c05ff9d83a650 /libsolidity/interface/CompilerStack.cpp | |
parent | f36dee1067f09e2a6e5ec0dc5996e19e5f36c8bd (diff) | |
download | dexon-solidity-d71cc66ddeb3f6e91628c019966b5ea107df4a15.tar.gz dexon-solidity-d71cc66ddeb3f6e91628c019966b5ea107df4a15.tar.zst dexon-solidity-d71cc66ddeb3f6e91628c019966b5ea107df4a15.zip |
Use GasEstimator::dataGas in CompilerStack
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index adf59a9c..d1001c80 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -988,8 +988,7 @@ Json::Value CompilerStack::gasEstimates(string const& _contractName) const if (eth::AssemblyItems const* items = assemblyItems(_contractName)) { Gas executionGas = gasEstimator.functionalEstimation(*items); - u256 bytecodeSize(runtimeObject(_contractName).bytecode.size()); - Gas codeDepositGas = bytecodeSize * eth::GasCosts::createDataGas; + Gas codeDepositGas{eth::GasMeter::dataGas(runtimeObject(_contractName).bytecode, false)}; Json::Value creation(Json::objectValue); creation["codeDepositCost"] = gasToJson(codeDepositGas); |