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,