-
Notifications
You must be signed in to change notification settings - Fork 556
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
Add missing smart wallet (PDA wallet) support #1922
Add missing smart wallet (PDA wallet) support #1922
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@valentinmadrid is attempting to deploy a commit to the blockworks-foundation Team on Vercel. A member of the Team first needs to authorize it. |
|
||
const programVersion = await fetchProgramVersion(connection, realm.owner) | ||
|
||
if (wallet?.name == "SquadsX") { |
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.
could you explain this and why a special case is needed? and if it really is needed, please leave comments in the code about it
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.
Added comments.
let transferAuthority; | ||
|
||
// Checks if the connected wallet is the Squads Multisig extension. This wallet needs custom logic as ephemeral Keypair signatures can not be used after the transaction blockhash has expired. | ||
if (wallet?.name == "SquadsX") { |
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.
style: just use a ternary please!
This adds allowOwnerOffCurve to ATA derivations for Realms to be compatible with the SquadsX extension.