[Ethereum] Truffle Dapp only works when I first use `truffle migrate –reset`


When I first load my Dapp with testrpc the functionality doesn't work until I use the command truffle migrate --reset

Any ideas why?

Best Answer

This is because truffle remembers previous migrations you made but you are on a new test network. You can see registered contract addresses by running truffle networks.

You can delete these informations by running truffle networks --clean before truffle migrate.