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

feat: added authorizeWithSeed to the vote program in web3.js #27627

Merged
merged 2 commits into from
Sep 7, 2022
Merged

feat: added authorizeWithSeed to the vote program in web3.js #27627

merged 2 commits into from
Sep 7, 2022

Conversation

steveluscher
Copy link
Contributor

Problem

Read all about what the authorizeWithSeed instruction is for, here. #25928.

Summary of Changes

  • Added VoteProgram.authorizeWithSeed
  • Added test for VoteProgram.authorizeWithSeed

Closes #25974.

@steveluscher
Copy link
Contributor Author

Please ignore the first commit; you can go and approve it in #27624.

@steveluscher steveluscher added the javascript Pull requests that update Javascript code label Sep 6, 2022
@@ -152,6 +171,9 @@ export function getAlloc(type: any, fields: any): number {
if (Array.isArray(field)) {
return field.length * getItemAlloc(item.elementLayout);
}
} else if ('fields' in item) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Go review this in #27624.

@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #27627 (848f499) into master (e779032) will decrease coverage by 0.0%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #27627     +/-   ##
=========================================
- Coverage    76.9%    76.8%   -0.1%     
=========================================
  Files          48       52      +4     
  Lines        2505     2671    +166     
  Branches      355      367     +12     
=========================================
+ Hits         1927     2053    +126     
- Misses        448      485     +37     
- Partials      130      133      +3     

@steveluscher steveluscher merged commit 466e994 into solana-labs:master Sep 7, 2022
@steveluscher steveluscher deleted the vote-instructions-with-derived-keys-web3js branch September 7, 2022 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[web3.js] Implement AuthorizeWithSeed and AuthorizeCheckedWithSeed in the vote program
1 participant