Browse Source

Add memsize calculation for EXTCODECOPY

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

6
libevm/VM.h

@ -157,7 +157,11 @@ 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;
break;

Loading…
Cancel
Save