I am a noob.. I am trying to set
gasLimit since I am getting a gas estimation error.
I just don't understand where/how to insert it into the transaction. This is on the BSC network.
ERROR: reason: 'cannot estimate gas; transaction may fail or may require manual gas limit', code: 'UNPREDICTABLE_GAS_LIMIT', error: Error: gas required exceeds allowance (3807079) or always failing transaction
const tx = await router.swapExactTokensForTokens( amountIn, amountOutMin, [tokenIn, tokenOut], addresses.recipient, Date.now() + 1000 * 60 * 3 //3 minutes ); const receipt = await tx.wait(); console.log('Transaction receipt'); console.log(receipt);