Skip to content

Commit

Permalink
Merge pull request #653 from ethereum/java-typo
Browse files Browse the repository at this point in the history
java: Fix get_block_hash implementation
  • Loading branch information
axic committed Jun 1, 2022
2 parents 9ab1fe4 + e01ed50 commit 58913e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/java/c/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static struct evmc_tx_context get_tx_context_fn(struct evmc_host_context* contex

static evmc_bytes32 get_block_hash_fn(struct evmc_host_context* context, int64_t number)
{
char java_method_name[] = "get_code_hash";
char java_method_name[] = "get_block_hash";
char java_method_signature[] = "(Lorg/ethereum/evmc/HostContext;J)Ljava/nio/ByteBuffer;";

assert(context != NULL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static ByteBuffer get_tx_context(HostContext context) {
}

/** Get block hash callback function. */
static ByteBuffer get_block_hash_fn(HostContext context, long number) {
static ByteBuffer get_block_hash(HostContext context, long number) {
return ensureDirectBuffer(context.getBlockHash(number));
}

Expand Down

0 comments on commit 58913e0

Please sign in to comment.