Skip to content

Commit

Permalink
publish new npm pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
binyebarwe committed Oct 24, 2023
1 parent bd2e643 commit 2a5d4fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export class OpenBookV2Client {
public async createOpenOrders(
market: PublicKey,
accountIndex: BN,
name: string,
openOrdersIndexer?: PublicKey,
): Promise<PublicKey> {
if (openOrdersIndexer == null) {
Expand All @@ -360,7 +361,7 @@ export class OpenBookV2Client {
const openOrders = this.findOpenOrders(market, accountIndex);

const ix = await this.program.methods
.createOpenOrdersAccount()
.createOpenOrdersAccount(name)
.accounts({
openOrdersIndexer,
openOrdersAccount: openOrders,
Expand Down

0 comments on commit 2a5d4fe

Please sign in to comment.