Does anyone have a working solidity swap example for a UniSwap v2 on Ropsten in Remix?

I've read these article: https://soliditydeveloper.com/uniswap2#comment-5084771054

And this post: Swap ether to tokens on Uniswap V2 Router 02 fails

This example is for Kovan and it doesn't seem to work on Ropsten. I can't seem to find a working faucet for Koven to try this out.

When every I attempt to call any function in Remix I get the following warning...

Gas estimation failed

"Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution reverted"

This may be because the DAI address on Ropsten could be different.

If anyone has a working example they can share that would be great. Thanks



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.