Uniswap / v2-core

🦄 🦄 Core smart contracts of Uniswap V2
https://uniswap.org/docs
GNU General Public License v3.0
2.93k stars 3.15k forks source link

uniswap-v2-periphery solidity version different to v2-core #105

Open xiangjie256329 opened 3 years ago

xiangjie256329 commented 3 years ago

how to combine,i can't deploy the code,uniswap-v2-periphery use 0.6.6,v2-core use 0.5.16

const UniswapV2Factory = artifacts.require("UniswapV2Factory"); const UniswapV2Router02 = artifacts.require("UniswapV2Router02"); const feeToSetter = '0x07e2aA78C573f7e3C15be6432B0e0911c95Deff6'; const WETH = { mainnet:'0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2', ropsten:'0x07e2aA78C573f7e3C15be6432B0e0911c95Deff6', rinkeby:'0xc778417E063141139Fce010982780140Aa0cD5Ab', goerli:'0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6', kovan:'0xd0A1E359811322d97991E03f863a0C30C2cF029C'}; module.exports = (deployer, network, accounts) => { deployer.deploy(UniswapV2Factory, feeToSetter).then((FactoryInstance)=>{ return deployer.deploy(UniswapV2Router02,FactoryInstance.address,WETH[network]); }); };

ghost commented 8 months ago

You can use interface contracts, bytecodes, forking networks, or modify both contracts to the latest solidity compiler version.