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

refactor: remove duplciate validateHash #1077

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Nov 28, 2022

Description

It looks like the helper function validateHash was intentionally duplicated in the da package to avoid import issues when this package lived in celestia-core. Now that da lives in celestia-app, it seems possible to import celestia-core ValidateHash directly rather than duplicate it.

Motivation

Observed while reading da package to answer an unrelated question.

@rootulp rootulp self-assigned this Nov 28, 2022
@rootulp rootulp enabled auto-merge (squash) November 28, 2022 15:24
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

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

nice catch! this must have been a remnant of when this code was in celestia-core and we needed to import it into the types package.

omfg, do we have a flakey markdown linter??!

@rootulp rootulp merged commit 1f1f188 into celestiaorg:main Nov 29, 2022
@rootulp rootulp deleted the rp/remove-validate-hash branch November 29, 2022 15:40
@rootulp
Copy link
Collaborator Author

rootulp commented Nov 29, 2022

omfg, do we have a flakey markdown linter??!

It seems like it. Both of the links that error here work for me.

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.

None yet

2 participants