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,680 points
2,376 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,030 points
0 votes
truffle migrate --reset
answered May 11 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,300 points
384 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,030 points
185 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,810 points
434 views
0 votes
1 answer
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 29, 2018 in Blockchain by Omkar
• 69,030 points
324 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
4,207 views