-
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
Changes from 5 commits
ea98a6f
3965a27
8e4ac93
0036def
228e2c6
0851256
7bd351b
ebc8b01
345967b
d13b9ca
b6d015d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@reown/appkit-adapter-bitcoin': patch | ||
| '@reown/appkit': patch | ||
| --- | ||
|
|
||
| Fixes issue in Leather wallet where requests would target mainnet instead of testnet |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| /// <reference types="next" /> | ||
| /// <reference types="next/image-types/global" /> | ||
| import './out/types/routes.d.ts' | ||
| import "./out/types/routes.d.ts"; | ||
|
|
||
| // NOTE: This file should not be edited | ||
| // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,26 @@ describe('LeatherConnector', () => { | |
| const res = await connector.sendTransfer({ amount: '100', recipient: 'address' }) | ||
|
|
||
| expect(res).toBe(txid) | ||
| expect(requestSpy).toHaveBeenCalledWith('sendTransfer', { address: 'address', amount: '100' }) | ||
| expect(requestSpy).toHaveBeenCalledWith('sendTransfer', { | ||
| recipients: [{ address: 'address', amount: '100' }], | ||
| network: 'mainnet' | ||
| }) | ||
| }) | ||
|
|
||
| it('should send a transfer for testnet', async () => { | ||
| getActiveNetwork.mockReturnValueOnce(bitcoinTestnet) | ||
|
|
||
| const txid = 'txid' | ||
| const requestSpy = vi.spyOn(mocks.wallet, 'request') | ||
| requestSpy.mockResolvedValue(mockSatsConnectProvider.mockRequestResolve({ txid })) | ||
|
|
||
| const res = await connector.sendTransfer({ amount: '100', recipient: 'address' }) | ||
|
|
||
| expect(res).toBe(txid) | ||
| expect(requestSpy).toHaveBeenCalledWith('sendTransfer', { | ||
| recipients: [{ address: 'address', amount: '100' }], | ||
| network: 'testnet' | ||
| }) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: API Changes Not Reflected in ConnectorThe |
||
| }) | ||
|
|
||
| it('should sign a PSBT', async () => { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| export const PACKAGE_VERSION = '1.8.7' | ||
| export const PACKAGE_VERSION = '1.8.8' |
Uh oh!
There was an error while loading. Please reload this page.