10

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

Any ideas why?

q9f
  • 32,913
  • 47
  • 156
  • 395
ethereal
  • 1,805
  • 2
  • 14
  • 25

1 Answers1

8

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.

Harold
  • 362
  • 3
  • 9