added first attempt for `withdraws` vec. try it out and see if it breaks

This commit is contained in:
dafyddd 2022-05-24 18:40:05 -04:00
parent 33a5e7d50a
commit 382059cb42
1 changed files with 2 additions and 2 deletions

View File

@ -850,9 +850,9 @@ export class MangoClient {
amountIn, // todo: convert to u64?
minimumAmountOut, // todo: convert to u64?
);
const targetRemainingAccounts = instruction.keys;
const targetRemainingAccounts = instruction.keys; // todo: verify this does not contain programId
const withdraws = []; // todo:
const withdraws = [{ index: 3, amount: amountIn }];
const cpiData = instruction.data; // todo: is it just instruction.data?
return await this.program.methods