Good day everyone! I'm trying to add liquidity to my uniswap pool using a hardhat script. I have deployed the token succesfully but when I run the add liquidity script I keep getting an 'TransferHelper: TRANSFER_FROM_FAILED' error message.
I have already approved the router to use both my token as well as my WETH. I've been stuck on this for quite a while now, would be super helpful if someone could shed some light on this
Here's my script (and the rest of my hardhat folder): https://github.com/fondofdogs/MoonSafe/blob/main/scripts/add-liquidity.js
Jul 13, 2022, 6:14 AM
please try checking your code very well the moonSafe address is not a contract address 0x2dd2812b07B59Cb89E8077c6CB42c6D6ee08ca12 or not deployed to same network
Jul 13, 2022, 6:37 AM
Na that's not true. I verified by connecting remix to my local hardhat node, MoonSafe contract is definitely deployed at that address (on my locally forked hardhat network that is)
Jul 13, 2022, 2:29 PM