EVM-C: Add 2 todo items

This commit is contained in:
Paweł Bylica 2018-03-21 15:50:26 +01:00
parent 3d60258131
commit 64bebf8b5b
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,8 @@ typedef void (*evm_get_block_hash_fn)(struct evm_uint256be* result,
int64_t number);
/// The execution status code.
///
/// @todo: Add status code for out-of-buffer access.
enum evm_status_code {
EVM_SUCCESS = 0, ///< Execution finished with success.
EVM_FAILURE = 1, ///< Generic execution failure.
@ -150,6 +152,8 @@ enum evm_status_code {
EVM_STACK_UNDERFLOW = 6,
EVM_REVERT = 7, ///< Execution terminated with REVERT opcode.
/// Tried to execute an operation which is restricted in static mode.
/// @todo Avoid _ERROR suffix that suggests fatal error.
EVM_STATIC_MODE_ERROR = 8,
/// The EVM rejected the execution of the given code or message.