Length of targets and payloads is not equal

Hi Everyone, thanks for sparing your precious time to help me.
Actually the length of my targets and payloads is not matching. I tried since more than a week but could’nt solve it. Can someone please help me come out of this issue. I would be very very happy if someone help me please. Thanking you


async takeCrossedMarkets(
bestCrossedMarkets: CrossedMarketDetails,
blockNumber: number,
minerRewardPercentage: number
): Promise {
for (const bestCrossedMarket of bestCrossedMarkets) {
const buyCalls =
await bestCrossedMarket.buyFromMarket.sellTokensToNextMarket(
WETH_ADDRESS,
bestCrossedMarket.volume,
bestCrossedMarket.sellToMarket
);
const inter = bestCrossedMarket.buyFromMarket.getTokensOut(
WETH_ADDRESS,
bestCrossedMarket.tokenAddress,
bestCrossedMarket.volume
);
const sellCallData = await bestCrossedMarket.sellToMarket.sellTokens(
bestCrossedMarket.tokenAddress,
inter,
this.bundleExecutorContract.address
);

  const targets: Array<string> = [
    ...buyCalls.targets,
    bestCrossedMarket.sellToMarket.marketAddress,
  ];
  const payloads: Array<string> = [...buyCalls.data, sellCallData];

I don’t know whether the problem is in this part of code or somewhere else. I’ve also deployed a contract on the Ethereum Mainnet.
Please someone guide me please.