Truffle migrate not deploying contract.

0 votes

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 in Blockchain by digger
• 27,620 points
690 views

1 answer 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 by Omkar
• 67,120 points

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,050 points
176 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
• 67,120 points
52 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
105 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
• 67,120 points
96 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 in Blockchain by Dinesh
1,204 views