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

fix return type of get_hash() in python binding #664

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Aug 14, 2024

even though the type stub for get_hash() says bytes32 we currently return a plain bytes object. This fixes it by actually constructing a bytes32 object to be returned. Also extend the built-in conversion to also support bytes48

…eturn a plain bytes object. This fixes it by actually constructing a bytes32 object to be returned. Also extend the built-in conversion to also support bytes48
@arvidn arvidn force-pushed the get_hash-py-binding branch from 42e45db to 928e607 Compare August 14, 2024 21:09
@arvidn arvidn marked this pull request as ready for review August 14, 2024 21:19
Copy link

Pull Request Test Coverage Report for Build 10395046680

Details

  • 7 of 11 (63.64%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 83.888%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/chia-protocol/src/bytes.rs 0 4 0.0%
Totals Coverage Status
Change from base Build 10394376987: 0.04%
Covered Lines: 12308
Relevant Lines: 14672

💛 - Coveralls

@arvidn arvidn merged commit 7b96f25 into main Aug 14, 2024
59 checks passed
@arvidn arvidn deleted the get_hash-py-binding branch August 14, 2024 23:52
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.

2 participants