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

vms/platformvm: Add missing txs to txs.Builder #2663

Merged
merged 9 commits into from
Jan 30, 2024

Conversation

dhrubabasu
Copy link
Contributor

Why this should be merged

This PR add NewAddPermissionlessValidatorTx and NewAddPermissionlessDelegatorTx to txs.Builder. This struct is only used in testing so these new functions hard-code in Subnet=PrimaryNetwork and generates a bls key on the fly.

There is active work being done to remove reliance on this struct in favor of the wallet so wanted to keep this PR simple to unblock the testing changes in #2662.

How this works

Add methods

How this was tested

CI

// rewardAddress: address to send reward to, if applicable
// keys: keys providing the staked tokens
// changeAddr: address to send change to, if there is any
NewAddPermissionlessDelegatorTx(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unused in this PR but is used in the follow-up: #2662

@StephenButtolph StephenButtolph added this to the v1.10.20 milestone Jan 30, 2024
@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Jan 30, 2024
@dhrubabasu dhrubabasu requested a review from abi87 January 30, 2024 20:51
@StephenButtolph StephenButtolph merged commit f1068d2 into master Jan 30, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the update-platformvm-tx-builder branch January 30, 2024 23:59
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.

None yet

5 participants