AdChain / AdChainRegistry

adChain registry smart contracts
Apache License 2.0
30 stars 10 forks source link

Special handling of development network in migrations #7

Closed skmgoldin closed 7 years ago

skmgoldin commented 7 years ago

The testrpc will not have a token contract already deployed for testing purposes. If the network is development, should overwrite the token address in the migration conf file with the address of a newly deployed token.

Ideally, this special case should deploy an entirely new instance of the Sale.sol contract for the purposes of absolute bytecode parity with the mainnet instances, but perhaps that can be a separate issue.