diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 22:16:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 22:16:38 +0800 |
commit | 410d94c49802ffd1a8cc834e30630308aed7283b (patch) | |
tree | 1d75cae3e1d7a7f2ac1e62faded1261cc310e2a0 /libsolidity | |
parent | 2c860b7d7403fdec27442b617e9d01e610d06502 (diff) | |
parent | d7c3f197c4c5bb5eb735089486134fdc20a5850f (diff) | |
download | dexon-solidity-410d94c49802ffd1a8cc834e30630308aed7283b.tar.gz dexon-solidity-410d94c49802ffd1a8cc834e30630308aed7283b.tar.zst dexon-solidity-410d94c49802ffd1a8cc834e30630308aed7283b.zip |
Merge pull request #5089 from ethereum/gasmeter
Small pathgasmeter cleanups
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/interface/GasEstimator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libsolidity/interface/GasEstimator.cpp b/libsolidity/interface/GasEstimator.cpp index a532f86e..e70e23a2 100644 --- a/libsolidity/interface/GasEstimator.cpp +++ b/libsolidity/interface/GasEstimator.cpp @@ -160,8 +160,7 @@ GasEstimator::GasConsumption GasEstimator::functionalEstimation( ); } - PathGasMeter meter(_items, m_evmVersion); - return meter.estimateMax(0, state); + return PathGasMeter::estimateMax(_items, m_evmVersion, 0, state); } GasEstimator::GasConsumption GasEstimator::functionalEstimation( @@ -183,7 +182,7 @@ GasEstimator::GasConsumption GasEstimator::functionalEstimation( if (parametersSize > 0) state->feedItem(swapInstruction(parametersSize)); - return PathGasMeter(_items, m_evmVersion).estimateMax(_offset, state); + return PathGasMeter::estimateMax(_items, m_evmVersion, _offset, state); } set<ASTNode const*> GasEstimator::finestNodesAtLocation( |