-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: Leather Wallet network mismatch #5164
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: Leather Wallet network mismatch #5164
Conversation
🦋 Changeset detectedLatest commit: b6d015d The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
10 Skipped Deployments
|
There was a problem hiding this 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.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
📦 Bundle Size Check✅ All bundles are within size limits 📊 View detailed bundle sizes> @reown/[email protected] size /home/runner/work/appkit/appkit > size-limit |
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
…00-rootstock-powpegbug-when-using-bitcoin-testnet-network-and
Description
Type of change
Associated Issues
Closes APKT-4000
Checklist
Note
Fixes Leather wallet connector to target the correct Testnet network and adds unit tests; minor config/package updates.
packages/adapters/bitcoin/src/connectors/LeatherConnector.tsto correctly target Testnet.packages/adapters/bitcoin/tests/connectors/LeatherConnector.test.tsto cover Testnet targeting behavior.packages/adapters/bitcoin/package.jsonandapps/demo/package.json(version/scripts/deps as needed).apps/laboratory/.eslintrc.json.Written by Cursor Bugbot for commit b6d015d. This will update automatically on new commits. Configure here.