From 84b89d4a1d4d9386bf002c7b682817d34ac991d3 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Thu, 23 Jun 2022 15:24:48 +0200 Subject: [PATCH] fix Signed-off-by: microwavedcola1 --- ts/client/src/client.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/client/src/client.ts b/ts/client/src/client.ts index b98e9b0b3..08c086a06 100644 --- a/ts/client/src/client.ts +++ b/ts/client/src/client.ts @@ -1249,9 +1249,7 @@ export class MangoClient { ); return await this.program.methods - .flashLoan(withdraws, [ - { accountStart: new BN(parsedHealthAccounts.length), data: cpiDatas }, - ]) + .flashLoan(withdraws, [cpiDatas]) .accounts({ group: group.publicKey, account: mangoAccount.publicKey,