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 /libevmasm/GasMeter.cpp | |
parent | d43d4347bf1e37bb8f114c9df0e2ae62545fbc87 (diff) | |
download | dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.gz dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.tar.zst dexon-solidity-d2cee6f9c6babdf8c857e9860d68b6876d71a7eb.zip |
reduce unnecessary solidity:: namespace
Diffstat (limited to 'libevmasm/GasMeter.cpp')
-rw-r--r-- | libevmasm/GasMeter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libevmasm/GasMeter.cpp b/libevmasm/GasMeter.cpp index eab3037b..40a67bb1 100644 --- a/libevmasm/GasMeter.cpp +++ b/libevmasm/GasMeter.cpp @@ -84,13 +84,13 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item) break; case Instruction::MLOAD: case Instruction::MSTORE: - gas += memoryGas(classes.find(solidity::Instruction::ADD, { + gas += memoryGas(classes.find(Instruction::ADD, { m_state->relativeStackElement(0), classes.find(AssemblyItem(32)) })); break; case Instruction::MSTORE8: - gas += memoryGas(classes.find(solidity::Instruction::ADD, { + gas += memoryGas(classes.find(Instruction::ADD, { m_state->relativeStackElement(0), classes.find(AssemblyItem(1)) })); @@ -198,7 +198,7 @@ GasMeter::GasConsumption GasMeter::memoryGas(int _stackPosOffset, int _stackPosS if (classes.knownZero(m_state->relativeStackElement(_stackPosSize))) return GasConsumption(0); else - return memoryGas(classes.find(solidity::Instruction::ADD, { + return memoryGas(classes.find(Instruction::ADD, { m_state->relativeStackElement(_stackPosOffset), m_state->relativeStackElement(_stackPosSize) })); |