I am new to smart contract development and I am trying to deploy my first contract. When running the truffle compile for the first time I can see that a build folder was generated on my project however after running truffle migrate the artifacts are not being generated inside the build folder.
xxxs-iMac dApp % truffle compile
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Other threads suggest a problem with writing permission however since the folder build is being created I assume this is not the issue. This is the first time I am deploying a smart contract so I also think it maybe something on my dev setup although i have correctly installed truffle and ganache dependencies via npm.
Truffle config :
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*", // Match any network id
},
},
plugins: ["solidity-coverage"],
};
2_deploy_contracts.js file:
const Voting = artifacts.require("./Voting");
module.exports = function (deployer) {
deployer.deploy(Voting);
};
2_deploy_contracts.js
file?2_deploy_contracts.js
file. I updated the thread above with the code.Compiling your contracts... =========================== > Everything is up to date, there is nothing to compile. Network up to date.
No artifacts were created although the build folder was created.