Hi, I am trying to add liquidity withe the uniswap addLiquidity function over ether.js like
const token2 = new ethers.Contract(
this.state.tokenBData.address,
ERC20.abi,
provider
);
let gasPrice = await this.state.provider.getGasPrice();
console.log(`gasPrice: ${gasPrice}`);
const tx = await token2
.connect(this.state.signer)
.approve(this.state.router.address, tokenBAmount, {
from: this.state.account,
gasPrice,
})
await tx.wait(1);
But the transaction is pending more than 2 minutes or longer. What I am doing wrong?