Browse Source

Add memsize calculation for EXTCODECOPY

cl-refactor
Nick Savers 10 years ago
parent
commit
f0cc349333
  1. 4
      libevm/VM.h

4
libevm/VM.h

@ -157,6 +157,10 @@ template <class Ext> dev::bytesConstRef dev::eth::VM::go(Ext& _ext, OnOpFunc con
require(3);
newTempSize = memNeed(m_stack.back(), m_stack[m_stack.size() - 3]);
break;
case Instruction::EXTCODECOPY:
require(4);
newTempSize = memNeed(m_stack[m_stack.size() - 2], m_stack[m_stack.size() - 4]);
break;
case Instruction::BALANCE:
runGas = c_balanceGas;

Loading…
Cancel
Save