Truffle migrate not deploying contract

–1 vote

I am facing problem is migrating my contract. When I migrated the first time, it worked fine. Then I had to make some changes to the contract. I made those changes and compiled the program, I got no errors. Now while trying to migrate, it shows no error but it is not even deploying the contract.

> truffle migrate
Using network 'development'.

Network up to date.
Jan 18, 2019 in Blockchain by digger
• 26,740 points
9,247 views

2 answers to this question.

0 votes

When you run truffle migrate it shows that network is up-to-date and so the changed contract is not getting deployed. This usually happens when there are conflicts in the contracts. When you ran the truffle migrate command the first time, there will be a build folder created that contains files regarding the first contract. To deploy the contract again, delete the build folder and try to migrate again.

answered Jan 18, 2019 by Omkar
• 69,220 points
0 votes
truffle migrate --reset
answered May 12, 2020 by Jason Romero

Related Questions In Blockchain

0 votes
1 answer

Truffle tutorials "Error:recipient address is not a contract address"

It appears like you have already migrated ...READ MORE

answered Aug 8, 2018 in Blockchain by slayer
• 29,370 points
1,155 views
0 votes
1 answer
0 votes
1 answer

Not able to migrate truffle project even after running testrpc

Maybe you forgot to compile the project ...READ MORE

answered Dec 11, 2018 in Blockchain by Omkar
• 69,220 points
894 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,947 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,470 views
0 votes
1 answer
0 votes
1 answer

Not able to migrate contract in Truffle: Error: No network specified. Cannot determine current network

Make these entries in truffle.js file: module.exports = { ...READ MORE

answered Nov 30, 2018 in Blockchain by Omkar
• 69,220 points
1,213 views
0 votes
3 answers

Truffle migrate Could not connect to your Ethereum client.

As mentioned in the previous answer, you ...READ MORE

answered Feb 19, 2019 in Blockchain by Dinesh
11,866 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP