OriginProtocol / origin-js

We've moved to a monorepo: https://github.com/OriginProtocol/origin
MIT License
81 stars 33 forks source link

Origin-js should validate config options #551

Open tyleryasaka opened 6 years ago

tyleryasaka commented 6 years ago

We want origin-js to throw an error if any necessary config options are not passed in to the origin-js constructor.

For example, affiliate and arbitrator should be required, at a minimum.

This is a safeguard against possibly catastrophic bugs that would result from someone careless (such as myself) forgetting to set an environment variable.