-
Notifications
You must be signed in to change notification settings - Fork 49
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
tests: voting test #490
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
svm.send_transaction(tx) | ||
} | ||
|
||
pub fn create_proposal( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
The new test,
voting.rs
has two purposes:merge_target_positions
and nothing breaks