mirror of https://github.com/status-im/evmc.git
Implement calls using evm_call() function form EVM-C API
This commit is contained in:
parent
4198c0d503
commit
c83060626f
|
@ -189,6 +189,8 @@ enum evm_call_kind {
|
||||||
|
|
||||||
/// Pointer to the callback function supporting EVM calls.
|
/// Pointer to the callback function supporting EVM calls.
|
||||||
///
|
///
|
||||||
|
/// @param env Pointer to execution environment managed by the host
|
||||||
|
/// application.
|
||||||
/// @param kind The kind of call-like opcode requested.
|
/// @param kind The kind of call-like opcode requested.
|
||||||
/// @param gas The amount of gas for the call.
|
/// @param gas The amount of gas for the call.
|
||||||
/// @param address The address of a contract to be called. Ignored in case
|
/// @param address The address of a contract to be called. Ignored in case
|
||||||
|
@ -204,6 +206,7 @@ enum evm_call_kind {
|
||||||
/// If negative - an exception occurred during the call/create.
|
/// If negative - an exception occurred during the call/create.
|
||||||
/// There is no need to set 0 address in the output in this case.
|
/// There is no need to set 0 address in the output in this case.
|
||||||
typedef int64_t (*evm_call_fn)(
|
typedef int64_t (*evm_call_fn)(
|
||||||
|
struct evm_env* env,
|
||||||
enum evm_call_kind kind,
|
enum evm_call_kind kind,
|
||||||
int64_t gas,
|
int64_t gas,
|
||||||
struct evm_hash160 address,
|
struct evm_hash160 address,
|
||||||
|
|
Loading…
Reference in New Issue