Skip to content

Commit

Permalink
sdk: fix lint/prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 19, 2024
1 parent 4efb630 commit 9b7802c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions sdk/src/adminClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3860,7 +3860,7 @@ export class AdminClient extends DriftClient {

public async initializePythPullOracle(
feedId: string,
isAdmin: boolean = false,
isAdmin = false
): Promise<TransactionSignature> {
const initializePythPullOracleIx = await this.getInitializePythPullOracleIx(
feedId,
Expand All @@ -3874,16 +3874,14 @@ export class AdminClient extends DriftClient {

public async getInitializePythPullOracleIx(
feedId: string,
isAdmin: boolean = false
isAdmin = false
): Promise<TransactionInstruction> {
const feedIdBuffer = getFeedIdUint8Array(feedId);
return await this.program.instruction.initializePythPullOracle(
feedIdBuffer,
{
accounts: {
admin: isAdmin
? this.getStateAccount().admin
: this.wallet.publicKey,
admin: isAdmin ? this.getStateAccount().admin : this.wallet.publicKey,
state: await this.getStatePublicKey(),
systemProgram: SystemProgram.programId,
priceFeed: getPythPullOraclePublicKey(
Expand Down
1 change: 0 additions & 1 deletion sdk/src/constants/spotMarkets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
SIX,
EIGHT,
NINE,
FIVE,
} from './numericConstants';

export type SpotMarketConfig = {
Expand Down

0 comments on commit 9b7802c

Please sign in to comment.