diff --git a/examples/capi.c b/examples/capi.c index 25ee08c..b6ea615 100644 --- a/examples/capi.c +++ b/examples/capi.c @@ -33,6 +33,6 @@ void example() { sizeof(code), gas, (uint8_t const*)input, sizeof(input), value); - evm_release_result_resources(&result); + evm_release_result(&result); evm_destroy(jit); } diff --git a/include/evm.h b/include/evm.h index 2ee8160..bc98cc1 100644 --- a/include/evm.h +++ b/include/evm.h @@ -328,7 +328,7 @@ EXPORT struct evm_result evm_execute(struct evm_instance* instance, size_t input_size, struct evm_uint256 value); -/// Releases the resources assigned to the execution result. +/// Releases resources assigned to an execution result. /// /// This function releases memory (and other resources, if any) assigned to the /// specified execution result making the result object invalid. @@ -336,7 +336,7 @@ EXPORT struct evm_result evm_execute(struct evm_instance* instance, /// @param result The execution result which resource are to be released. The /// result itself it not modified by this function, but becomes /// invalid and user should discard it as well. -EXPORT void evm_release_result_resources(struct evm_result const* result); +EXPORT void evm_release_result(struct evm_result const* result); /// Status of a code in VM. Useful for JIT-like implementations. enum evm_code_status {