Skip to content

Export warp errors for external use #1771

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

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Export warp errors for external use #1771

merged 1 commit into from
Jul 27, 2023

Conversation

aaronbuchwald
Copy link
Collaborator

Why this should be merged

This PR exports the un-exported warp errors, so that they can be consumed by an external package. For example, in Subnet-EVM we copy the same test coverage from AvalancheGo warp to ensure that any change in behavior will be noticed and picked up by those tests.

Exporting these variables ensures that we can add the same test coverage and assert an exact error match.

If we'd prefer to draw a different line between them and assume that Subnet-EVM will depend on AvalancheGo for this test coverage and only worry about whether signature.Verify(...) returns true or false, then we should close this PR.

How this works

Exports the previously un-exported errors in the warp package.

How this was tested

CI

@aaronbuchwald aaronbuchwald self-assigned this Jul 27, 2023
@aaronbuchwald aaronbuchwald added this to the v1.10.6 milestone Jul 27, 2023
@StephenButtolph StephenButtolph added cleanup Code quality improvement warp labels Jul 27, 2023
Copy link
Contributor

@morrisettathena morrisettathena left a comment

Choose a reason for hiding this comment

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

LGTM!

@StephenButtolph StephenButtolph merged commit e13ecf1 into dev Jul 27, 2023
@StephenButtolph StephenButtolph deleted the export-warp-errs branch July 27, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement warp
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants