it has happened to me many times, that after updating a contract and running truffle migrate
it simply told me network up to date
in order to reproduce the behaviour I did the following:
- create a folder metacoin
- run
truffle unbox metacoin
- edit the
truffle.js
to include a testrpc node as the development network - run testrpc
- run
truffle migrate
- edit the file
contracts/Metacoin.sol
and adding a global public variable - run
truffle migrate
again
I could verify that the address of the contract did not change. I know that I can force a deployment with --reset
but this is not always a good option.