Skip to content

Commit f6a8620

Browse files
authored
Merge pull request #16 from ChanceBarimbao/Wrong-WalletType
Wrong wallet type
2 parents 760d7ed + f3142a5 commit f6a8620

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bsv/message-box-client",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"publishConfig": {
55
"access": "public"
66
},

src/PeerPayClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import { MessageBoxClient } from './MessageBoxClient.js'
1414
import { PeerMessage } from './types.js'
15-
import { WalletClient, P2PKH, PublicKey, createNonce, AtomicBEEF, AuthFetch, Base64String } from '@bsv/sdk'
15+
import { WalletInterface, P2PKH, PublicKey, createNonce, AtomicBEEF, AuthFetch, Base64String } from '@bsv/sdk'
1616
import * as Logger from './Utils/logger.js'
1717

1818
function safeParse<T> (input: any): T {
@@ -34,7 +34,7 @@ const STANDARD_PAYMENT_OUTPUT_INDEX = 0
3434
*/
3535
export interface PeerPayClientConfig {
3636
messageBoxHost?: string
37-
walletClient: WalletClient
37+
walletClient: WalletInterface
3838
enableLogging?: boolean // Added optional logging flag
3939
}
4040

@@ -71,7 +71,7 @@ export interface IncomingPayment {
7171
* PeerPayClient enables peer-to-peer Bitcoin payments using MessageBox.
7272
*/
7373
export class PeerPayClient extends MessageBoxClient {
74-
private readonly peerPayWalletClient: WalletClient
74+
private readonly peerPayWalletClient: WalletInterface
7575
private _authFetchInstance?: AuthFetch
7676

7777
constructor (config: PeerPayClientConfig) {

0 commit comments

Comments
 (0)