On every truffle migrate truffle deploy contracts even if they are not changed. although it doesn't re-compile

Truffle v5.0.5

  • 1
    Perhaps are you on windows? Sometimes truffle is confused by some artifacts it had created in build/ directory. Usually removing build/ directory will eliminate any bad artifact and force truffle to re-compile all contracts, some alternative commands: truffle compile --all (force contract recompilation, but it will not remove unrecognized artifacts) and truffle migrate --reset (force contracts redeployment). – Ismael Aug 12 '20 at 4:32

Solved by updating truffle

npm uninstall -g truffle
npm install -g truffle

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.