EVM-C: start result codes from 1

This commit is contained in:
Alex Beregszaszi 2016-08-24 12:30:45 +01:00
parent baeade4d10
commit 971033adda
1 changed files with 7 additions and 7 deletions

View File

@ -61,13 +61,13 @@ struct evm_hash256 {
/// The outcome of an execution.
enum evm_result_outcome {
EVM_SUCCESS = 0,
EVM_OUT_OF_GAS = 1,
EVM_BAD_INSTRUCTION = 2,
EVM_BAD_JUMP_DESTINATION = 3,
EVM_STACK_OVERFLOW = 4,
EVM_STACK_UNDERFLOW = 5,
EVM_EXCEPTION = 6
EVM_SUCCESS = 1,
EVM_OUT_OF_GAS = 2,
EVM_BAD_INSTRUCTION = 3,
EVM_BAD_JUMP_DESTINATION = 4,
EVM_STACK_OVERFLOW = 5,
EVM_STACK_UNDERFLOW = 6,
EVM_EXCEPTION = 7
};
/// Complex struct representing execution result.