How to deploy UniswapV2 on ganache

Hi everyone, I want to lets you know that I have been successfully deployed UniswapV2Router02.sol by set truffle config as below:

compilers: {
   solc: {
     version: "0.6.6",    // Fetch exact version from solc-bin (default: truffle's version)
     // docker: true,        // Use "0.5.1" you've installed locally with docker (default: false)
     settings: {          // See the solidity docs for advice about optimization and evmVersion
      optimizer: {
        enabled: true,
        runs: 999999
      },
      evmVersion: "istanbul", 
      outputSelection: {
       "*": {
         "": [
           "ast"
         ],
         "*": [
           "evm.bytecode.object",
           "evm.deployedBytecode.object",
           "abi",
           "evm.bytecode.sourceMap",
           "evm.deployedBytecode.sourceMap",
           "metadata"
         ]
       },
     }
     }
   },
 },
1 Like