Skip to content

Commit

Permalink
use signing authority in swift order subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Feb 13, 2025
1 parent f687da9 commit 280b7bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/src/swift/swiftOrderSubscriber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ export class SwiftOrderSubscriber {
'hex'
);
const takerAuthority = new PublicKey(orderMessageRaw['taker_authority']);
const signingAuthority = new PublicKey(
orderMessageRaw['signing_authority']
);
const takerUserPubkey = await getUserAccountPublicKey(
this.driftClient.program.programId,
takerAuthority,
Expand All @@ -182,7 +185,7 @@ export class SwiftOrderSubscriber {
this.driftClient.program.programId,
takerUserAccount.authority
),
signingAuthority: takerAuthority,
signingAuthority: signingAuthority,
},
Object.assign({}, makerOrderParams, {
postOnly: PostOnlyParams.MUST_POST_ONLY,
Expand Down

0 comments on commit 280b7bd

Please sign in to comment.