diff options
author | Jared Wasinger <j-wasinger@hotmail.com> | 2018-07-31 08:54:43 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 23:11:02 +0800 |
commit | c6bd2979b1265cb81d35124a2785e3828658f7cc (patch) | |
tree | d2c57db0ac0509eba0342ce71ac819758fb62664 /libevmasm/GasMeter.cpp | |
parent | a86e1d187b929124c27365a8f2e185545c4157b1 (diff) | |
download | dexon-solidity-c6bd2979b1265cb81d35124a2785e3828658f7cc.tar.gz dexon-solidity-c6bd2979b1265cb81d35124a2785e3828658f7cc.tar.zst dexon-solidity-c6bd2979b1265cb81d35124a2785e3828658f7cc.zip |
Add assembly support for EXTCODEHASH (EIP-1052)
Diffstat (limited to 'libevmasm/GasMeter.cpp')
-rw-r--r-- | libevmasm/GasMeter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/GasMeter.cpp b/libevmasm/GasMeter.cpp index b40617c1..59afc4da 100644 --- a/libevmasm/GasMeter.cpp +++ b/libevmasm/GasMeter.cpp @@ -112,6 +112,7 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _ gas += wordGas(GasCosts::copyGas, m_state->relativeStackElement(-2)); break; case Instruction::EXTCODESIZE: + case Instruction::EXTCODEHASH: gas = GasCosts::extCodeGas(m_evmVersion); break; case Instruction::EXTCODECOPY: |