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

fix: fix broken wallet adapter in proposals app #2494

Merged
merged 1 commit into from
Mar 17, 2025

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
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
LedgerWalletAdapter,
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.

@@ -24,6 +24,9 @@
"pnpm": {
"overrides": {
"@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.

2 participants