这是我交易函数的代码
const tx = await router.swapExactTokensForTokens(
amountIn,
amountOutMin,
[tokenIn, tokenOut],
data.recipient,
Date.now() + 1000 60 10, //10 minutes
{
'gasLimit': data.gasLimit,
'gasPrice': ethers.utils.parseUnits(${data.gasPrice}
, 'gwei')
});
console.log(tx)
const receipt = await tx.wait();
console.log('Transaction receipt');
console.log(receipt);
};
我应该从哪方面排除我的问题呢,感激不尽