I have an initial folder with an extension of the tutorial, and I'm now working in a new folder:
new-project | +- build +- contracts | +- NewContract.sol | +- migrations +- ... truffle-test | +-pet-shop-tutorial +-old-project | +- build | +- contracts | +- oldContract.sol
I made the
new_project as a copy of
old-project, but now when I'm in the
new-project folder and I run
truffle compile or
truffle migrate what I see is:
Compiling .\..\truffle-test\old-project\contracts\OldContract.sol... Writing artifacts to .\build\contracts [...]
And truffle actually writes the artifacts of the old contract in the new folder!
I'm left with this:
new-project | +- build | +- OldContract.JSON | +- NewContract.JSON +- contracts | +- NewContract.sol
And the new contract doesn't seem to be deployed. I edited
1_initial_migration.js to mention the new contract, and it's still not deployed.
What should I do? Did I forget something? How do I prevent truffle from compiling from other folders?