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

Hash.Bytes() fix #147

Closed
wants to merge 1 commit into from
Closed

Hash.Bytes() fix #147

wants to merge 1 commit into from

Conversation

klaidliadon
Copy link
Contributor

The method Hash.Bytes() should return the entire byte slice instead of the truncated version from Hash.Hash().Bytes()

The method `Hash.Bytes()` should return the entire byte slice instead of the truncated version from `Hash.Hash().Bytes()`
@@ -124,20 +124,20 @@ func (h Hash) IsValidTxnHash() bool {
return true
}

func (h Hash) Bytes() []byte {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not able to check it right now as I'm on holidays, however this may make indexer and other services using this new version of library not backward compatible.

I wouldn't change that. It's risky.

Copy link
Member

Choose a reason for hiding this comment

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

I agree. I prefer not to make this change.. is it required..?

Copy link
Member

Choose a reason for hiding this comment

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

I propose let’s keep this PR as a draft and we can reconsider it in the future

@klaidliadon klaidliadon marked this pull request as draft July 26, 2024 11:07
@klaidliadon klaidliadon closed this Aug 5, 2024
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