Returns the transaction status

function simTransactionStatus() internal returns (uint64 status)

Return Values

NameTypeDescription
statusuint64the current transaction status

Responses:

valuestatus
0EVMC_SUCCESS
1EVMC_FAILURE
2EVMC_REVERT
3EVMC_OUT_OF_GAS
4EVMC_INVALID_INSTRUCTION
5EVMC_UNDEFINED_INSTRUCTION
6EVMC_STACK_OVERFLOW
7EVMC_STACK_UNDERFLOW
8EVMC_BAD_JUMP_DESTINATION
9EVMC_INVALID_MEMORY_ADDRESS
10EVMC_CALL_DEPTH_EXCEEDED
11EVMC_STATIC_MODE_VIOLATION
12EVMC_PRECOMPILE_FAILURE
13EVMC_CONTRACT_VALIDATION_FAILURE
14EVMC_ARGUMENT_OUT_OF_RANGE
15EVMC_WASM_UNREACHABLE_INSTRUCTION
16EVMC_WASM_TRAP
17EVMC_INSUFFICIENT_BALANCE
-1EVMC_INTERNAL_ERROR
-2EVMC_REJECTED
-3EVMC_OUT_OF_MEMORY

For more details on these statuses, see: https://evmc.ethereum.org/group__EVMC.html#ga4c0be97f333c050ff45321fcaa34d920

Notes

  1. Can only be used in a post Transaction hook