examples: Rename evm_log() to emit_log()

This commit is contained in:
Paweł Bylica 2018-08-08 15:39:40 +02:00
parent 8cf24c7dd9
commit e16f19e38d
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 7 additions and 9 deletions

View File

@ -142,14 +142,12 @@ static void get_block_hash(struct evmc_uint256be* result,
}
/// EVM log callback.
///
/// @note The `evm_log` name is used to avoid conflict with `log()` C function.
static void evm_log(struct evmc_context* context,
const struct evmc_address* address,
const uint8_t* data,
size_t data_size,
const struct evmc_uint256be topics[],
size_t topics_count)
static void emit_log(struct evmc_context* context,
const struct evmc_address* address,
const uint8_t* data,
size_t data_size,
const struct evmc_uint256be topics[],
size_t topics_count)
{
(void)context;
(void)address;
@ -161,7 +159,7 @@ static void evm_log(struct evmc_context* context,
static const struct evmc_context_fn_table ctx_fn_table = {
account_exists, get_storage, set_storage, get_balance, get_code_size, get_code_hash,
copy_code, selfdestruct, call, get_tx_context, get_block_hash, evm_log,
copy_code, selfdestruct, call, get_tx_context, get_block_hash, emit_log,
};
/// Example how the API is supposed to be used.