diff --git a/sdk/src/driftClient.ts b/sdk/src/driftClient.ts index 75a4b5c11..dabe96a13 100644 --- a/sdk/src/driftClient.ts +++ b/sdk/src/driftClient.ts @@ -8838,11 +8838,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 ), [], @@ -8852,10 +8856,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(),