diff options
author | Dimitry <dimitry@ethdev.com> | 2016-04-04 19:41:35 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2016-04-04 19:41:35 +0800 |
commit | d2cee6f9c6babdf8c857e9860d68b6876d71a7eb (patch) | |
tree | c60a596054e999de8ad797e8af9b38598041d3fa /libsolidity/interface | |
parent | d43d4347bf1e37bb8f114c9df0e2ae62545fbc87 (diff) | |
download | dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.gz dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.bz2 dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.lz dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.xz dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.zst dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.zip |
reduce unnecessary solidity:: namespace
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/GasEstimator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/interface/GasEstimator.cpp b/libsolidity/interface/GasEstimator.cpp index f634a96d..99ed75bc 100644 --- a/libsolidity/interface/GasEstimator.cpp +++ b/libsolidity/interface/GasEstimator.cpp @@ -137,8 +137,8 @@ GasEstimator::GasConsumption GasEstimator::functionalEstimation( using Id = ExpressionClasses::Id; using Ids = vector<Id>; Id hashValue = classes.find(u256(FixedHash<4>::Arith(FixedHash<4>(dev::sha3(_signature))))); - Id calldata = classes.find(solidity::Instruction::CALLDATALOAD, Ids{classes.find(u256(0))}); - classes.forceEqual(hashValue, solidity::Instruction::DIV, Ids{ + Id calldata = classes.find(Instruction::CALLDATALOAD, Ids{classes.find(u256(0))}); + classes.forceEqual(hashValue, Instruction::DIV, Ids{ calldata, classes.find(u256(1) << (8 * 28)) }); @@ -165,7 +165,7 @@ GasEstimator::GasConsumption GasEstimator::functionalEstimation( AssemblyItem invalidTag(PushTag, u256(-0x10)); state->feedItem(invalidTag, true); if (parametersSize > 0) - state->feedItem(solidity::swapInstruction(parametersSize)); + state->feedItem(swapInstruction(parametersSize)); return PathGasMeter(_items).estimateMax(_offset, state); } |