|
|
@ -28,13 +28,13 @@ bytesConstRef VM::go(ExtVMFace& _ext, OnOpFunc const&, uint64_t) |
|
|
|
case ReturnCode::OutOfGas: |
|
|
|
BOOST_THROW_EXCEPTION(OutOfGas()); |
|
|
|
case ReturnCode::StackTooSmall: |
|
|
|
BOOST_THROW_EXCEPTION(StackTooSmall(1,0)); |
|
|
|
BOOST_THROW_EXCEPTION(StackTooSmall(1, 0)); |
|
|
|
case ReturnCode::BadInstruction: |
|
|
|
BOOST_THROW_EXCEPTION(BadInstruction()); |
|
|
|
} |
|
|
|
|
|
|
|
m_output = std::move(engine.returnData); |
|
|
|
return {m_output.data(), m_output.size()}; // TODO: This all bytesConstRef stuff sucks
|
|
|
|
return {m_output.data(), m_output.size()}; // TODO: This all bytesConstRef stuff sucks
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|