|
@ -188,6 +188,10 @@ template <class Ext> dev::bytesConstRef dev::eth::VM::go(Ext& _ext, OnOpFunc con |
|
|
// EXECUTE...
|
|
|
// EXECUTE...
|
|
|
switch (inst) |
|
|
switch (inst) |
|
|
{ |
|
|
{ |
|
|
|
|
|
default: |
|
|
|
|
|
BOOST_THROW_EXCEPTION(BadInstruction()); |
|
|
|
|
|
break; |
|
|
|
|
|
|
|
|
case Instruction::ADD: |
|
|
case Instruction::ADD: |
|
|
//pops two items and pushes S[-1] + S[-2] mod 2^256.
|
|
|
//pops two items and pushes S[-1] + S[-2] mod 2^256.
|
|
|
require(2); |
|
|
require(2); |
|
|