From 3276c128aafc245154c473379815c8c0c81d840c Mon Sep 17 00:00:00 2001 From: Chris Heaney Date: Wed, 27 Dec 2023 11:30:45 -0600 Subject: [PATCH] sdk: try to revert driftClient style changes --- sdk/src/driftClient.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sdk/src/driftClient.ts b/sdk/src/driftClient.ts index 6fa030eb1..74a645470 100644 --- a/sdk/src/driftClient.ts +++ b/sdk/src/driftClient.ts @@ -3274,8 +3274,9 @@ export class DriftClient { subAccountId?: number ): Promise { orderParams = getOrderParams(orderParams, { marketType: MarketType.SPOT }); - const userAccountPublicKey = - await this.getUserAccountPublicKey(subAccountId); + const userAccountPublicKey = await this.getUserAccountPublicKey( + subAccountId + ); const remainingAccounts = this.getRemainingAccounts({ userAccounts: [this.getUserAccount(subAccountId)], @@ -5785,8 +5786,9 @@ export class DriftClient { } if (initializeStakeAccount) { - const initializeIx = - await this.getInitializeInsuranceFundStakeIx(marketIndex); + const initializeIx = await this.getInitializeInsuranceFundStakeIx( + marketIndex + ); addIfStakeIxs.push(initializeIx); }