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

Unexport all P-Chain visitors #3525

Merged
merged 30 commits into from
Nov 7, 2024
Merged

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Nov 6, 2024

Why this should be merged

While using visitors rather than type switches enforces handling of all possible transaction types, instantiating a visitor is very annoying.

How this works

Rather than having callers create the visitor and then passing the visitor into the Visit function, this PR abstracts the visitor behind a function.

How this was tested

This is a pure refactor, the existing tests should ensure the correctness of this change.

Need to be documented in RELEASES.md?

No.

@StephenButtolph StephenButtolph changed the base branch from master to remove-p-chain-txsmock-package November 7, 2024 16:50
@StephenButtolph StephenButtolph changed the title Standardize p chain tx vistors Unexport all P-Chain visitors Nov 7, 2024
@StephenButtolph StephenButtolph self-assigned this Nov 7, 2024
@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Nov 7, 2024
@StephenButtolph StephenButtolph added this to the v1.11.13 milestone Nov 7, 2024
@StephenButtolph StephenButtolph marked this pull request as ready for review November 7, 2024 17:16
Base automatically changed from remove-p-chain-txsmock-package to master November 7, 2024 19:49
@StephenButtolph StephenButtolph added this pull request to the merge queue Nov 7, 2024
Merged via the queue into master with commit beebbe0 Nov 7, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the standardize-p-chain-tx-vistors branch November 7, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants