function swapTokens(address tokenIn, uint256 amountIn) internal {
address oai_citation:1,Error;
path[0] = tokenIn;
path[1] = WETH;
IERC20(tokenIn).safeApprove(address(uniswapV2Router), amountIn);
Looks like there is a glitch or something that keeps this error happening and can’t compile.
function swapTokens(address tokenIn, uint256 amountIn) internal {
address oai_citation:1,Error;
New contributor
Keith Crolley is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.