Skip to content

Conversation

@cprussin
Copy link
Collaborator

Summary

This PR upgrades the wallet adapters used in the proposals app to use the catalog dependencies.

It looks like the solana packages revved some patches but released a number of breaking changes. Unifying on the catalog dependencies both fixes the issues and also makes it easier for me to keep these up to date with the rest of the monorepo moving forward.

Rationale

The proposals app wallet button is currently broken, presumably as a result of #2489 .

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@cprussin cprussin requested a review from a team as a code owner March 17, 2025 19:19
@vercel
Copy link

vercel bot commented Mar 17, 2025

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

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 7:23pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 7:23pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 7:23pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 7:23pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 7:23pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 7:23pm

@cprussin cprussin requested a review from guibescos March 17, 2025 19:19
PhantomWalletAdapter,
SolflareWalletAdapter,
SolletExtensionWalletAdapter,
SolletWalletAdapter,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fyi @guibescos these wallet adapters have been deprecated and no longer exist in the current version of the solana wallet adapter library.

"@solana/[email protected]>rpc-websockets": "7.11.0"
},
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed this patch in #2489 and the proposals app works in prod without it, but I didn't test local dev mode, and there without this patch we get a syntax error in eccrypto, so I need to resurrect it.

@cprussin cprussin merged commit 8ca01ff into main Mar 17, 2025
10 checks passed
@cprussin cprussin deleted the cprussin/fix-proposals-wallet branch March 17, 2025 19:26
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.

3 participants