0

When I run truffle deploy, it deploys 1_initial_migration.js before every contract. Is there anyway this can be avoided? Or is this part of protocol and is supposed to happen everytime?

Thank you.

0

You can just remove that file.

If you have multiple contracts and you sometimes update only some of them, the initial migration is supposed to make sure that only the changed contracts are updated.

In reality I haven't seen any serious project use the initial migrations. Some have the file still there, but have basically forgotten it's there and gain no benefits.

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.