10

无法部署uniswap的工厂合约 | 登链社区 | 技术问答

 3 years ago
source link: https://learnblockchain.cn/question/1819
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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

Air
采纳率 100% | 回答于 2021-02-22 23:44

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK