From 556f068d467ebc1e6593992e98c81690f440641d Mon Sep 17 00:00:00 2001 From: bigz_Pubkey <83473873+0xbigz@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:37:24 -0500 Subject: [PATCH] sdk: add-protected-orders-field (#1392) --- sdk/src/driftClient.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sdk/src/driftClient.ts b/sdk/src/driftClient.ts index 9fe7177fd..5d9212179 100644 --- a/sdk/src/driftClient.ts +++ b/sdk/src/driftClient.ts @@ -8850,11 +8850,15 @@ export class DriftClient { public async updateUserProtectedMakerOrders( subAccountId: number, + protectedOrders: boolean, txParams?: TxParams ): Promise { const { txSig } = await this.sendTransaction( await this.buildTransaction( - await this.getUpdateUserProtectedMakerOrdersIx(subAccountId), + await this.getUpdateUserProtectedMakerOrdersIx( + subAccountId, + protectedOrders + ), txParams ), [], @@ -8864,10 +8868,12 @@ export class DriftClient { } public async getUpdateUserProtectedMakerOrdersIx( - subAccountId: number + subAccountId: number, + protectedOrders: boolean ): Promise { const ix = await this.program.instruction.updateUserProtectedMakerOrders( subAccountId, + protectedOrders, { accounts: { state: await this.getStatePublicKey(),