Skip to content

fix: allow sending spl solana tokens in send flow#4877

Merged
0xmkh merged 2 commits intomainfrom
fix/solana-send-flow
Aug 19, 2025
Merged

fix: allow sending spl solana tokens in send flow#4877
0xmkh merged 2 commits intomainfrom
fix/solana-send-flow

Conversation

@0xmkh
Copy link
Copy Markdown
Collaborator

@0xmkh 0xmkh commented Aug 19, 2025

Description

Fixed an issue where users could not send SPL solana tokens through the send flow

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-3625

Showcase (Optional)

Screenshot 2025-08-19 at 15 50 12

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

Copilot AI review requested due to automatic review settings August 19, 2025 15:32
@linear
Copy link
Copy Markdown

linear bot commented Aug 19, 2025

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 19, 2025

🦋 Changeset detected

Latest commit: d72b81a

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

This PR includes changesets to release 25 packages
Name Type
@reown/appkit-controllers Patch
@reown/appkit-common Patch
pay-test-exchange Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-pay Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-testing Patch
@reown/appkit-ui Patch
@reown/appkit-universal-connector Patch
@reown/appkit-wallet Patch
@reown/appkit-wallet-button 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

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Ready Ready Preview Comment Aug 19, 2025 3:45pm
appkit-gallery Ready Ready Preview Comment Aug 19, 2025 3:45pm
appkit-laboratory Ready Ready Preview Comment Aug 19, 2025 3:45pm
11 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Aug 19, 2025 3:45pm
appkit-basic-sign-client-example Ignored Ignored Aug 19, 2025 3:45pm
appkit-basic-up-example Ignored Ignored Aug 19, 2025 3:45pm
appkit-ethers5-bera Ignored Ignored Aug 19, 2025 3:45pm
appkit-nansen-demo Ignored Ignored Aug 19, 2025 3:45pm
appkit-vue-solana Ignored Ignored Aug 19, 2025 3:45pm
appkit-wagmi-cdn-example Ignored Ignored Aug 19, 2025 3:45pm
ethereum-provider-wagmi-example Ignored Ignored Aug 19, 2025 3:45pm
next-wagmi-solana-bitcoin-example Ignored Ignored Aug 19, 2025 3:45pm
vue-wagmi-example Ignored Ignored Aug 19, 2025 3:45pm
appkit-demo Skipped Skipped Aug 19, 2025 3:45pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue preventing users from sending SPL (Solana Program Library) tokens through the send flow. The fix extracts the token mint address from the CAIP address format when sending SPL tokens.

  • Adds logic to extract the SPL token mint address from CAIP addresses for Solana token transfers
  • Includes comprehensive test coverage for both native SOL and SPL token sending scenarios
  • Adds a constant for the native SOL token address

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/controllers/src/controllers/SendController.ts Implements token mint extraction logic for SPL token transfers
packages/controllers/tests/controllers/SendController.test.ts Adds comprehensive test coverage for the new SPL token sending functionality
packages/common/src/utils/ConstantsUtil.ts Adds constant for native SOL token address
.changeset/seven-rabbits-behave.md Documents the bug fix in changeset for release notes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@vercel vercel bot temporarily deployed to Preview – appkit-demo August 19, 2025 15:39 Inactive
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.19% 34386 / 43972
🔵 Statements 78.19% 34386 / 43972
🔵 Functions 76.08% 3798 / 4992
🔵 Branches 86.74% 8136 / 9379
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/common/src/utils/ConstantsUtil.ts 100% 0% 100% 100%
packages/controllers/src/controllers/SendController.ts 65.07% 72.54% 62.85% 65.07% 73, 117-119, 121, 132-133, 138-139, 142-143, 163-178, 223-238, 243-274, 280-281, 293, 295-311, 316-317, 321-322, 154-270
Generated in workflow #14413 for commit d72b81a by the Vitest Coverage Report Action

@0xmkh 0xmkh added this pull request to the merge queue Aug 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 19, 2025
@0xmkh 0xmkh added this pull request to the merge queue Aug 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 19, 2025
@0xmkh 0xmkh added this pull request to the merge queue Aug 19, 2025
Merged via the queue into main with commit 530ccda Aug 19, 2025
41 checks passed
@0xmkh 0xmkh deleted the fix/solana-send-flow branch August 19, 2025 16:52
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