Skip to content

Commit 1b2ee35

Browse files
Merge pull request #24 from bsv-blockchain/fix/originator-missing
Fix/originator missing
2 parents a78ae99 + 68d4545 commit 1b2ee35

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
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.4.3",
3+
"version": "1.4.5",
44
"publishConfig": {
55
"access": "public"
66
},

src/PeerPayClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface IncomingPayment {
7878
export class PeerPayClient extends MessageBoxClient {
7979
private readonly peerPayWalletClient: WalletInterface
8080
private _authFetchInstance?: AuthFetch
81-
private messageBox: string
81+
private readonly messageBox: string
8282

8383
constructor(config: PeerPayClientConfig) {
8484
const { messageBoxHost = 'https://messagebox.babbage.systems', walletClient, enableLogging = false, originator } = config
@@ -116,8 +116,8 @@ export class PeerPayClient extends MessageBoxClient {
116116
};
117117

118118
// Generate derivation paths using correct nonce function
119-
const derivationPrefix = await createNonce(this.peerPayWalletClient)
120-
const derivationSuffix = await createNonce(this.peerPayWalletClient)
119+
const derivationPrefix = await createNonce(this.peerPayWalletClient, 'self', this.originator)
120+
const derivationSuffix = await createNonce(this.peerPayWalletClient, 'self', this.originator)
121121

122122
Logger.log(`[PP CLIENT] Derivation Prefix: ${derivationPrefix}`)
123123
Logger.log(`[PP CLIENT] Derivation Suffix: ${derivationSuffix}`)

src/types/permissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@ export interface MessageBoxMultiQuote {
118118
* If all recipients resolve to one host, you’ll just have one entry.
119119
*/
120120
deliveryAgentIdentityKeyByHost: Record<string, string>
121-
}
121+
}

0 commit comments

Comments
 (0)