Migrate does not update Testnet addresses correctly
mahjiang opened this issue · comments
Eric Jiang commented
Expected Behavior
truffle migrate --network testnet
should automatically update constants.js
with the new Testnet contract addresses.
Actual Behavior
Only privatenet addresses are updated after migration, regardless of selected network
Steps to Reproduce the Problem
- Use privatenet provider
truffle migrate --network testnet
constants.js
privatenet addresses are updated
Eric Jiang commented
Solution is to add a new case
to the switch
statement in constants.js
getAddress()
for any new networks added to truffle.js