New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
singletons module prevents using with embark #40
Comments
Hello @NoahMarconi, thank you for reporting this! What causes the issue? Is it the setting of the provider in this line?
I'm not too familiar with Embark's environment, but some of our helpers do sort of assume truffle is being used: there's a plan to relax this requirement (#11), but we haven't got around to it yet. |
That's the line that breaks it! It's not severe enough to stop my project from moving forward; only prevents me from using the deployed package from NPM directly. |
Interesting. @NoahMarconi How does one retrieve the current provider in Embark? |
Not sure myself. I relayed the question on their gitter to see if someone more familiar can answer. |
We added a feature a few days ago to be able to use a web3 instance that is not global. It might help in this scenario. It's not released yet, it will be released next week probably. See Configuration in the readme. In any case, the provider is only necessary to set up an instance of |
I'm closing this as fixed by #41 because it will now be possible to use the package even if the If you have any more issues with Embark please report them! We're interested in getting this to work. You're also welcome to join our forum if you need any other kind of help. http://forum.zeppelin.solutions |
Awesome, I'll watch for the release. Thanks so much for the help and quick fix! |
If it helps for future fixes, they replied on gitter. web3Provider is not initialized globally at fist, so adding an initialization step to singleton could work (instead of assuming initialized web3 at the time of importing the module).
|
To use with embark I had to clone the repo locally and comment out the module:
The text was updated successfully, but these errors were encountered: