include/evmc: add code 11 for EVMC_PRECOMPILE_FAILURE

This commit is contained in:
Everett Hildenbrandt 2018-04-12 10:03:05 -05:00
parent 044abea9af
commit e567f2b3c3
1 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,11 @@ enum evmc_status_code {
/// An example is RETURNDATACOPY reading past the available buffer. /// An example is RETURNDATACOPY reading past the available buffer.
EVMC_INVALID_MEMORY_ACCESS = 10, EVMC_INVALID_MEMORY_ACCESS = 10,
/// Exceptions produced by precompiles/system contracts
///
/// An example: elliptic curve functions handed invalid EC points
EVMC_PRECOMPILE_FAILURE = 11,
/// The EVM rejected the execution of the given code or message. /// The EVM rejected the execution of the given code or message.
/// ///
/// This error SHOULD be used to signal that the EVM is not able to or /// This error SHOULD be used to signal that the EVM is not able to or