AraBlocks / ara-contracts

Blockchain interactions in Ara modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate does not update Testnet addresses correctly

mahjiang opened this issue · comments

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

  1. Use privatenet provider
  2. truffle migrate --network testnet
  3. constants.js privatenet addresses are updated

Solution is to add a new case to the switch statement in constants.js getAddress() for any new networks added to truffle.js