Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Make .address a property such that if it's null it'll error. #40

Open
tcoulter opened this issue Oct 5, 2016 · 1 comment
Open

Make .address a property such that if it's null it'll error. #40

tcoulter opened this issue Oct 5, 2016 · 1 comment

Comments

@tcoulter
Copy link
Contributor

tcoulter commented Oct 5, 2016

This will throw errors up front, like in this migration, for instance:

module.exports = function(deployer) {
  deployer.deploy([
    Mutex,
    Owned,
    Mortal,
    ExternalStorage,    
    [ForexDB, ExternalStorage.address],
    OrderDB,    
    [DepositDB, ExternalStorage.address],
    [Exchanger, ForexDB.address, OrderDB.address, DepositDB.address],
  ]);
};

This eventually leads to an error deep within the .sol.js file because .address is null in all cased above.

@tcoulter
Copy link
Contributor Author

Ensure this is no longer a problem with truffle-contract.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant