From 7057da94a9c4021190d9f893041a5b576da1e694 Mon Sep 17 00:00:00 2001 From: Serge Farny Date: Thu, 7 Mar 2024 14:56:31 +0100 Subject: [PATCH] ts client: add sequence check instruction (2) --- ts/client/src/client.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ts/client/src/client.ts b/ts/client/src/client.ts index a10101311..4f76931bc 100644 --- a/ts/client/src/client.ts +++ b/ts/client/src/client.ts @@ -1034,11 +1034,11 @@ export class MangoClient { return await this.sendAndConfirmTransactionForGroup(group, [ix]); } - public async sequenceCheck( + public async sequenceCheckIx( group: Group, mangoAccount: MangoAccount, - ): Promise { - const ix = await this.program.methods + ): Promise { + return await this.program.methods .sequenceCheck(mangoAccount.sequenceNumber) .accounts({ group: group.publicKey, @@ -1046,8 +1046,6 @@ export class MangoClient { owner: (this.program.provider as AnchorProvider).wallet.publicKey, }) .instruction(); - - return await this.sendAndConfirmTransactionForGroup(group, [ix]); } public async getMangoAccount(