Skip to content

Conversation

@tomiir
Copy link
Collaborator

@tomiir tomiir commented Oct 6, 2025

Description

  • Updates leather wallet parameters
  • Fixes issue where transactions would not target Testnet when using Leather wallet

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

Closes APKT-4000

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

Note

Fixes Leather wallet connector to target the correct Testnet network and adds unit tests; minor config/package updates.

  • Bitcoin Adapter:
    • Leather Connector: Fix network selection in packages/adapters/bitcoin/src/connectors/LeatherConnector.ts to correctly target Testnet.
    • Tests: Add/update packages/adapters/bitcoin/tests/connectors/LeatherConnector.test.ts to cover Testnet targeting behavior.
  • Configs/Packages:
    • Update packages/adapters/bitcoin/package.json and apps/demo/package.json (version/scripts/deps as needed).
    • Adjust ESLint config in apps/laboratory/.eslintrc.json.
    • Add changeset for release notes.

Written by Cursor Bugbot for commit b6d015d. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings October 6, 2025 16:31
@linear
Copy link

linear bot commented Oct 6, 2025

@changeset-bot
Copy link

changeset-bot bot commented Oct 6, 2025

🦋 Changeset detected

Latest commit: b6d015d

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

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

vercel bot commented Oct 6, 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 Oct 9, 2025 4:48pm
appkit-demo Ready Ready Preview Comment Oct 9, 2025 4:48pm
appkit-gallery Ready Ready Preview Comment Oct 9, 2025 4:48pm
appkit-laboratory Ready Ready Preview Comment Oct 9, 2025 4:48pm
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Oct 9, 2025 4:48pm
appkit-basic-sign-client-example Ignored Ignored Oct 9, 2025 4:48pm
appkit-basic-up-example Ignored Ignored Oct 9, 2025 4:48pm
appkit-ethers5-bera Ignored Ignored Oct 9, 2025 4:48pm
appkit-nansen-demo Ignored Ignored Oct 9, 2025 4:48pm
appkit-vue-solana Ignored Ignored Oct 9, 2025 4:48pm
appkit-wagmi-cdn-example Ignored Ignored Oct 9, 2025 4:48pm
ethereum-provider-wagmi-example Ignored Ignored Oct 9, 2025 4:48pm
next-wagmi-solana-bitcoin-example Ignored Ignored Oct 9, 2025 4:48pm
vue-wagmi-example Ignored Ignored Oct 9, 2025 4:48pm

Copy link
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 a bug in the Leather wallet integration where Bitcoin transactions were incorrectly targeting the mainnet instead of the testnet when using the Bitcoin testnet network. The fix updates the Leather wallet connector to properly pass the network parameter and use the correct API types.

  • Updates Leather wallet connector to include network parameter in transfer requests
  • Upgrades @leather.io/rpc dependency to use newer API types
  • Adds test coverage for testnet transaction handling

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/adapters/bitcoin/src/connectors/LeatherConnector.ts Updated transfer parameters to include network and use new API types
packages/adapters/bitcoin/tests/connectors/LeatherConnector.test.ts Added testnet test case and updated existing test expectations
packages/adapters/bitcoin/package.json Upgraded @leather.io/rpc dependency version
packages/appkit/exports/constants.ts Bumped package version to 1.8.8
apps/demo/package.json Updated demo app dependencies to version 1.8.8
package.json Updated strip-ansi version constraint
.changeset/large-doors-drive.md Added changeset documenting the bug fix

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

📦 Bundle Size Check

All bundles are within size limits

📊 View detailed bundle sizes

> @reown/[email protected] size /home/runner/work/appkit/appkit


> size-limit

@reown/appkit - Main Entry
Size limit:   80 kB
Size:         70.06 kB with all dependencies, minified and gzipped
Loading time: 1.4 s    on slow 3G
Running time: 471 ms   on Snapdragon 410
Total time:   1.9 s
@reown/appkit/react
Size limit:   230 kB
Size:         224.36 kB with all dependencies, minified and gzipped
Loading time: 4.4 s     on slow 3G
Running time: 964 ms    on Snapdragon 410
Total time:   5.4 s
@reown/appkit/vue
Size limit:   80 kB
Size:         70.06 kB with all dependencies, minified and gzipped
Loading time: 1.4 s    on slow 3G
Running time: 345 ms   on Snapdragon 410
Total time:   1.8 s
@reown/appkit-scaffold-ui
Size limit:   220 kB
Size:         204.85 kB with all dependencies, minified and gzipped
Loading time: 4.1 s     on slow 3G
Running time: 523 ms    on Snapdragon 410
Total time:   4.6 s
@reown/appkit-ui
Size limit:   500 kB
Size:         12.99 kB with all dependencies, minified and gzipped
Loading time: 254 ms   on slow 3G
Running time: 137 ms   on Snapdragon 410
Total time:   390 ms

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 79.77% 36474 / 45722
🔵 Statements 79.77% 36474 / 45722
🔵 Functions 78.1% 4002 / 5124
🔵 Branches 86.45% 8756 / 10128
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/adapters/bitcoin/src/connectors/LeatherConnector.ts 100% 100% 100% 100%
Generated in workflow #15688 for commit b6d015d by the Vitest Coverage Report Action

@tomiir tomiir changed the title Tomas/apkt 4000 rootstock powpegbug when using bitcoin testnet network and fix: Leather Wallet network mismatch Oct 6, 2025
…00-rootstock-powpegbug-when-using-bitcoin-testnet-network-and
cursor[bot]

This comment was marked as outdated.

@tomiir tomiir enabled auto-merge October 9, 2025 16:47
@tomiir tomiir disabled auto-merge October 9, 2025 17:26
@tomiir tomiir merged commit a492e24 into main Oct 9, 2025
61 of 63 checks passed
@tomiir tomiir deleted the tomas/apkt-4000-rootstock-powpegbug-when-using-bitcoin-testnet-network-and branch October 9, 2025 17:26
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants