We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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]); }); };
The text was updated successfully, but these errors were encountered:
You can use interface contracts, bytecodes, forking networks, or modify both contracts to the latest solidity compiler version.
Sorry, something went wrong.
No branches or pull requests
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]); });
};
The text was updated successfully, but these errors were encountered: