This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Truffle discards all (potentially expensive) deployed contracts when a migration fails #462
Closed
1 task done
Issue
Truffle doesn't save the addresses of contracts successfully deployed during failed migrations to
build/contracts/*.json
. This means it is very difficult/impossible to re-use those already-paid-for contract deployments when re-running the migration.Steps to Reproduce
build/contracts
.Expected Behavior
The address that the contract is deployed to ought to be saved to its file in
build/contracts
as soon as it is deployed, so that re-running the migration with{replace: false}
could, at least for simple migrations, potentially recover from the failure.Actual Results
The address that the contract is deployed at on the main network is not saved to the file in
build/contracts
.Environment
The text was updated successfully, but these errors were encountered: