Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java: Fix get_block_hash implementation #653

Merged
merged 1 commit into from
Jun 1, 2022
Merged

java: Fix get_block_hash implementation #653

merged 1 commit into from
Jun 1, 2022

Conversation

axic
Copy link
Member

@axic axic commented Jun 1, 2022

It used to have a typo triggering get_code_hash. Also removed the _fn suffix.

Pulled from #651.

It used to have a typo triggering get_code_hash. Also removed the _fn suffix.

Co-authored-by: Alex Beregszaszi <[email protected]>
@@ -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) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed this a the other ones don't have the _fn suffix.

@axic axic mentioned this pull request Jun 1, 2022
@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #653 (e01ed50) into master (9ab1fe4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #653   +/-   ##
=======================================
  Coverage   92.84%   92.84%           
=======================================
  Files          23       23           
  Lines        3552     3552           
  Branches      376      376           
=======================================
  Hits         3298     3298           
  Misses        144      144           
  Partials      110      110           

@axic axic requested a review from chfast June 1, 2022 12:32
@axic
Copy link
Member Author

axic commented Jun 1, 2022

Will just merge this as it is a typo.

@axic axic merged commit 58913e0 into master Jun 1, 2022
@axic axic deleted the java-typo branch June 1, 2022 13:06
@chfast
Copy link
Member

chfast commented Jun 1, 2022

Any regression test for this?

@axic
Copy link
Member Author

axic commented Jun 1, 2022

Absolutely no tests for Java apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants