Skip to content

Commit

Permalink
Add return code to blockhash
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Aug 30, 2018
1 parent e119c53 commit 2c4eccb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ typedef void (*evmc_get_tx_context_fn)(struct evmc_tx_context* result,
* @param context The pointer to the Host execution context.
* @param number The block number. Must be a value between
* (and including) 0 and 255.
* @return 1 if exists, 0 otherwise.
*/
typedef void (*evmc_get_block_hash_fn)(struct evmc_uint256be* result,
struct evmc_context* context,
int64_t number);
typedef int (*evmc_get_block_hash_fn)(struct evmc_uint256be* result,
struct evmc_context* context,
int64_t number);

/**
* The execution status code.
Expand Down

0 comments on commit 2c4eccb

Please sign in to comment.