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

tests: voting test #490

Merged
merged 29 commits into from
Aug 20, 2024
Merged

tests: voting test #490

merged 29 commits into from
Aug 20, 2024

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Aug 16, 2024

The new test, voting.rs has two purposes:

  1. to test the voting functionality against the deployed governance program and configuration
  2. to test that stake account positions with the old fixed sized position array can be turned into the new version by calling merge_target_positions and nothing breaks

Copy link

vercel bot commented Aug 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2024 5:05pm
staking-devnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 20, 2024 5:05pm

@guibescos guibescos changed the title Tests/backward compatibility test tests: voting test Aug 20, 2024
@guibescos guibescos marked this pull request as ready for review August 20, 2024 00:12
svm.send_transaction(tx)
}

pub fn create_proposal(
Copy link
Contributor

Choose a reason for hiding this comment

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

I had this convention in mind that each function in instructions.rs corresponds to exactly 1 instruction. And in helper_functions.rs we can call multiple of these instructions in a single function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I separated sign-off from create proposal, but I am going to keep get_update_voter_weight inside create_proposal since they're always supposed to be called together

@guibescos guibescos merged commit a293643 into main Aug 20, 2024
7 checks passed
@guibescos guibescos deleted the tests/backward-compatibility-test branch August 20, 2024 19:33
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.

2 participants