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: connectors not appearing on solana #2990

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

zoruka
Copy link
Contributor

@zoruka zoruka commented Oct 2, 2024

Description

This PR fixes the issue with connectors not appearing when using Solana Adapter. It also adds a safety test for proxying connectors with valtio so won't prevent other connectors to be used.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-1227
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

linear bot commented Oct 2, 2024

Copy link

vercel bot commented Oct 2, 2024

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

Name Status Preview Updated (UTC)
appkit-laboratory ✅ Ready (Inspect) Visit Preview Oct 2, 2024 10:03pm
web3modal-gallery ✅ Ready (Inspect) Visit Preview Oct 2, 2024 10:03pm

Copy link

changeset-bot bot commented Oct 2, 2024

🦋 Changeset detected

Latest commit: fbbc677

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 34 packages
Name Type
@reown/appkit-adapter-solana Patch
@reown/appkit-core Patch
@apps/demo Patch
@apps/gallery Patch
@apps/laboratory Patch
@examples/html-ethers Patch
@examples/html-ethers5 Patch
@examples/html-wagmi Patch
@examples/next-ethers Patch
@examples/next-wagmi Patch
@examples/react-ethers Patch
@examples/react-ethers5 Patch
@examples/react-solana Patch
@examples/react-wagmi Patch
@examples/vue-ethers5 Patch
@examples/vue-solana Patch
@examples/vue-wagmi Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-polkadot Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-common Patch
@reown/appkit-ethers Patch
@reown/appkit-ethers5 Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-solana Patch
@reown/appkit-ui Patch
@reown/appkit-wagmi Patch
@reown/appkit-wallet Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 2, 2024

Coverage Report for Coverage

Status Category Percentage Covered / Total
🔵 Lines 245.04% 4261 / 18908
🔵 Statements 245.04% 4261 / 18908
🔵 Functions 261.23999999999995% 330 / 1004
🔵 Branches 312.40999999999997% 598 / 1275
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
packages/core/src/controllers/ConnectorController.ts 75.31% 89.47% 75% 75.31% 31-32, 44-47, 49-50, 102-103, 118-119, 129, 131-135, 137-138, 194-196, 198, 200-202, 204-215
Generated in workflow #6534 for commit fbbc677 by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Oct 2, 2024

♻️ Vite-Size ♻️

Size Difference

Size (kb) Gzip (kb)
Total Diff. 0 0

Current Size

Name Size (kb) Gzip (kb)
assets/index-QhD_Pjuf.js 1890.454 540.483
assets/index.js 9.63 3.161
assets/index2.js 11.589 3.212
assets/w3m-modal.js 7.452 2.629
assets/noble-curves.js 31.941 12.779
assets/2.21.4_bufferutil.js 2.789 1.327
assets/index3.js 102.251 29.116
assets/index4.js 304.393 87.286
assets/hooks.module.js 74.286 25.524
index.html 0.329 0.236
Total Size 2435.114 705.753

Base Size

Name Size (kb) Gzip (kb)
assets/index-QhD_Pjuf.js 1890.454 540.483
assets/index.js 9.63 3.161
assets/index2.js 11.589 3.212
assets/w3m-modal.js 7.452 2.629
assets/noble-curves.js 31.941 12.779
assets/2.21.4_bufferutil.js 2.789 1.327
assets/index3.js 102.251 29.116
assets/index4.js 304.393 87.286
assets/hooks.module.js 74.286 25.524
index.html 0.329 0.236
Total Size 2435.114 705.753

error
})

return false
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why return false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a callback for the filter function, in case it is not proxiable we are filtering the connector out to not break anything.

@zoruka zoruka merged commit c2e391d into main Oct 2, 2024
17 checks passed
@zoruka zoruka deleted the fix/connectors-not-appearing-on-solana branch October 2, 2024 23:46
@github-actions github-actions bot mentioned this pull request Oct 2, 2024
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