I have a bit weird situation..I was able to deploy my contract to local Ganache instance with:
truffle migrate --network develop
However, now when I make any change to the contract and run the same command, my contract gets compiled but at the end I get
Network up to date
Now I'm not sure why this is happening ? The contract is not the same, although I have changed just a few lines of code and parameters and the return values are the same, could that be the reason ?
Also, I thought it would work with:
truffle deploy --reset
However I get this:
Compiling your contracts...
===========================
Everything is up to date, there is nothing to compile.
Something went wrong while attempting to connect to the network. Check your network configuration.
Could not connect to your Ethereum client with the following parameters:
- host > 127.0.0.1
- port > 7545
- network_id > 5777
Now its weird that is trying to use port 7545 when I run command with a --reset option...as my truffle-config points to port 8545:
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
develop: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
}
},
// Configure your compilers
compilers: {
solc: {
version: "0.8.4", // Fetch exact version from solc-bin (default: truffle's version)
}
}
},
};
I did previously have Ganuche running on 7545 as an experiment, but it hasn't been running on that port for a while, and
truffle migrate --network develop
was able to connect and execute initial migration. It's just that now it won't pick any new changes. Any ideas what is going on ?