truffle migrate --network kovan issue

by future-developer   Last Updated July 11, 2019 23:28 PM

When i run truffle migrate --network kovan in the terminal the contract deployment doesn't run. Just

Compiling your contracts...==================== >Eveything is up to date, there is nothing to compile

Here is my truffle-config.js code

require('babel-polyfill');
require('dotenv').config();
const HDWalletProvider = require('truffle-hdwallet-provider-privkey');
const privateKeys = process.env.PRIVATE_KEYS || ""

module.exports = {
  networks: {
    development: {
      host: "127.0.0.1",
      port: 7545,
      network_id: "*" // Match any network id
    },
    kovan: {
      provider: function(){
        return new HDWalletProvider(
          privateKeys.split(','),
          'https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}'
        )
      },
      gas: 5000000,
      gasPrice: 25000000000,
      network_id: 42
    }
  },
  contracts_directory: './src/contracts/',
  contracts_build_directory: './src/abis/',
  compilers: {
    solc: {
      optimizer: {
        enabled: true,
        runs: 200
      }
    }
  }
}



Related Questions


Updated September 27, 2017 04:28 AM

Updated March 12, 2018 22:28 PM

Updated April 04, 2019 06:28 AM

Updated March 30, 2018 08:28 AM