‘TransferHelper: TRANSFER_FROM_FAILED’ error on swapExactTokensForTokensSupportingFeeOnTransferTokens Uniswap router 02
I am building a contract to automatically swap a token with fee on transfer (I am using as a test this token t: 0x576e2BeD8F7b46D34016198911Cdf9886f78bea7
) via UniswapRouter02 swapExactTokensForTokensSupportingFeeOnTransferTokens. The recipient of the swap should be my contract as further functions have to be applied. I am using this address for UniswapRouter02 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
. I am running a local fork of Ethereum through HardHat.