Skip to content

Commit

Permalink
Merge pull request #222 from brittcyr/penalty
Browse files Browse the repository at this point in the history
Do not allow penalty payer to be null in settle funds in ts client
  • Loading branch information
skrrb authored Feb 6, 2024
2 parents 59cbaba + 7ba8793 commit 0e051c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ export class OpenBookV2Client {
userBaseAccount: PublicKey,
userQuoteAccount: PublicKey,
referrerAccount: PublicKey | null,
penaltyPayer: PublicKey | null,
penaltyPayer: PublicKey,
openOrdersDelegate?: Keypair,
): Promise<[TransactionInstruction, Signer[]]> {
const ix = await this.program.methods
Expand All @@ -973,7 +973,7 @@ export class OpenBookV2Client {
userBaseAccount: userBaseAccount,
userQuoteAccount: userQuoteAccount,
referrerAccount: referrerAccount,
penaltyPayer: penaltyPayer ?? PublicKey.default,
penaltyPayer: penaltyPayer,
})
.instruction();

Expand Down

0 comments on commit 0e051c3

Please sign in to comment.