Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiangjie256329 opened this issue Sep 21, 2020 · 1 comment
Open

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

xiangjie256329 opened this issue Sep 21, 2020 · 1 comment

Comments

@xiangjie256329
Copy link

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
Copy link

ghost commented Dec 31, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant