Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasDeco committed Nov 19, 2024
1 parent c10f986 commit b5bab6b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions sdk/src/driftClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5701,22 +5701,13 @@ export class DriftClient {
return this.signMessage(swiftServerMessage);
}

public signSwiftOrderParamsMessage(
orderParamsMessage: SwiftOrderParamsMessage
): Buffer {
const takerOrderParamsMessage = Uint8Array.from(
digest(this.encodeSwiftOrderParamsMessage(orderParamsMessage))
);
return this.signMessage(takerOrderParamsMessage);
}

public encodeSwiftOrderParamsMessage(
orderParamsMessage: SwiftOrderParamsMessage
): Buffer {
return this.program.coder.types.encode(
): string {
return digest(this.program.coder.types.encode(
'SwiftOrderParamsMessage',
orderParamsMessage
);
)).toString("utf-8");
}

public decodeSwiftOrderParamsMessage(
Expand Down

0 comments on commit b5bab6b

Please sign in to comment.