Skip to content

Commit

Permalink
EVM-C: Add 2 todo items
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Mar 21, 2018
1 parent 34f15d9 commit fdd4117
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/evm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit fdd4117

Please sign in to comment.