function swapTokens(address tokenIn, uint256 amountIn) internal {
address [oai_citation:1,Error](data:text/plain;charset=utf-8,Unable%20to%20find%20metadata);
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](data:text/plain;charset=utf-8,Unable%20to%20find%20metadata);
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.