mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 00:18:24 +00:00
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.
|
||||
///
|
||||
/// @param env Pointer to execution environment managed by the host
|
||||
/// application.
|
||||
/// @param kind The kind of call-like opcode requested.
|
||||
/// @param gas The amount of gas for the call.
|
||||
/// @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.
|
||||
/// There is no need to set 0 address in the output in this case.
|
||||
typedef int64_t (*evm_call_fn)(
|
||||
struct evm_env* env,
|
||||
enum evm_call_kind kind,
|
||||
int64_t gas,
|
||||
struct evm_hash160 address,
|
||||
|
Loading…
x
Reference in New Issue
Block a user