mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Improve VM code formatting
This commit is contained in:
parent
c03d36a07e
commit
f06445fcbb
1 changed files with 2 additions and 2 deletions
|
|
@ -28,13 +28,13 @@ bytesConstRef VM::go(ExtVMFace& _ext, OnOpFunc const&, uint64_t)
|
||||||
case ReturnCode::OutOfGas:
|
case ReturnCode::OutOfGas:
|
||||||
BOOST_THROW_EXCEPTION(OutOfGas());
|
BOOST_THROW_EXCEPTION(OutOfGas());
|
||||||
case ReturnCode::StackTooSmall:
|
case ReturnCode::StackTooSmall:
|
||||||
BOOST_THROW_EXCEPTION(StackTooSmall(1,0));
|
BOOST_THROW_EXCEPTION(StackTooSmall(1, 0));
|
||||||
case ReturnCode::BadInstruction:
|
case ReturnCode::BadInstruction:
|
||||||
BOOST_THROW_EXCEPTION(BadInstruction());
|
BOOST_THROW_EXCEPTION(BadInstruction());
|
||||||
}
|
}
|
||||||
|
|
||||||
m_output = std::move(engine.returnData);
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue