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
}
}
}
}