I am trying to deploy a test contract on Ropsten network. I am using metamask, infura and truffle to create and test the contract. My folder structure looks like this
My migration file has following codes
const TestContract = artifacts.require("TestContract");
module.exports = function(deployer) {
deployer.deploy(TestContract);
};
When i run truffle migrate i am getting following error Could not find artifacts for Migrations from any sources
My truffle-config.js look like this
const HDWalletProvider = require('truffle-hdwallet-provider')
module.exports = {
networks: {
ropsten: {
provider: function() {
return new HDWalletProvider("Mnemonic key", "https://ropsten.infura.io/v3/API_KEY")
},
network_id: 3,
gas: 4000000
}
},
contracts_directory: './src/contracts/',
contracts_build_directory: './src/abis/',
compilers: {
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
