prettier+serum connection override

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2024-08-19 13:47:05 +02:00
parent b22a979551
commit f571bd86fb
4 changed files with 7 additions and 4 deletions

View File

@ -1,2 +1 @@
ts/client/src/mango_v4.ts
ts/client/scripts/**

4
.prettierrc.json Normal file
View File

@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}

View File

@ -359,7 +359,7 @@ export class Group {
Array.from(this.serum3MarketsMapByExternal.values()).map(
(serum3Market) =>
Market.load(
client.program.provider.connection,
client.program.provider.connection as any,
serum3Market.serumMarketExternal,
{ commitment: client.program.provider.connection.commitment },
OPENBOOK_PROGRAM_ID[client.cluster],

View File

@ -133,7 +133,7 @@ export class Serum3Market {
this.serumMarketExternal,
);
return await serum3MarketExternal.loadBids(
client.program.provider.connection,
client.program.provider.connection as any,
);
}
@ -142,7 +142,7 @@ export class Serum3Market {
this.serumMarketExternal,
);
return await serum3MarketExternal.loadAsks(
client.program.provider.connection,
client.program.provider.connection as any,
);
}