Skip to content

Commit

Permalink
sdk: try to revert driftClient style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Dec 27, 2023
1 parent a33724b commit 3276c12
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sdk/src/driftClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3274,8 +3274,9 @@ export class DriftClient {
subAccountId?: number
): Promise<TransactionInstruction> {
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)],
Expand Down Expand Up @@ -5785,8 +5786,9 @@ export class DriftClient {
}

if (initializeStakeAccount) {
const initializeIx =
await this.getInitializeInsuranceFundStakeIx(marketIndex);
const initializeIx = await this.getInitializeInsuranceFundStakeIx(
marketIndex
);
addIfStakeIxs.push(initializeIx);
}

Expand Down

0 comments on commit 3276c12

Please sign in to comment.