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

Add missing smart wallet (PDA wallet) support #1922

Merged
merged 8 commits into from
Nov 15, 2023

Conversation

valentinmadrid
Copy link
Contributor

This adds allowOwnerOffCurve to ATA derivations for Realms to be compatible with the SquadsX extension.

Copy link

vercel bot commented Nov 14, 2023

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

Name Status Preview Comments Updated (UTC)
governance-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2023 3:43pm

Copy link

vercel bot commented Nov 14, 2023

@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") {
Copy link
Contributor

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

Copy link
Contributor Author

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") {
Copy link
Contributor

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!

@asktree asktree merged commit 3b8b7e6 into solana-labs:main Nov 15, 2023
2 checks passed
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