在测试链ropsten测试uniswapv2的时候添加流动性无法执行

uniswapv2的代码我是从以太坊浏览器copy的,我发布了一个erc20合约。erc20和router合约进行approved,然后我试着使用remix进行添加流动性,remix提示如下: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? execution reverted

我提高了gaslimit还是会出现这个提示。我持有的测试ETH和token都是足量的。现在就是不知道为什么会出现这个提示,我单独调用生成pair合约的函数是成功的。

请先 登录 后评论

2 个回答

nono
请先 登录 后评论
zen
请先 登录 后评论
  • 1 关注
  • 0 收藏,2500 浏览
  • troye 提出于 2022-03-09 13:16