30 无法部署uniswap的工厂合约

image.png 部署https://github.com/Uniswap/uniswap-v2-core/tree/master/contracts的uniswapFactory.sol合约时,

显示* [ This contract may be abstract, not implement an abstract parent's methods completely or not invoke an inherited contract's constructor correctly] .

请先 登录 后评论

最佳答案 2021-02-24 21:39

兄弟,你搞错了,不要直接折腾uniswap源码;

要从 etherscan.io (https://cn.etherscan.com/address/0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f#code) 拷贝工厂合约; 而且还得手工增加 INIT_CODE_PAIR_HASH;

详见 https://blockchain.news/wiki/how-to-build-an-uniswap-exchange

请先 登录 后评论

其它 1 个回答

Tiny熊 - 布道者
  擅长:智能合约,以太坊
请先 登录 后评论
  • 2 关注
  • 0 收藏,2810 浏览
  • 越泽 提出于 2021-02-22 21:49

相似问题