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
Consider removing truffle-contract dependency #11
Comments
With #38 merged, the only truffle dependency is on |
The uses of
|
|
I also firmly believe that OpenZeppelin helpers should be agnostic to truffle. To bypass the dependency of decodeLogs I use:
Be aware that the event returned object of web3 does not have |
To avoid dropping truffle support altogether, we can have But how should we handle the instances
|
Option 4 is to make it configurable (library-wide), with any function The current configurability "system" is not very good though because you can only configure once, and it results in weird usability. |
I like it! We'll probably keep the configuring of the web3 instance (specially with truffle no longer being the default), so having this makes a lot of sense. I'll review the config system to make it more flexible. |
I think this should be changed to configuring the provider instead of the entire web3 instance. We should control internally what version of web3 we're using. But that can be done as a separate change. |
It might be better if the helpers were agnostic to the framework that is being used, and used web3.js directly.
The text was updated successfully, but these errors were encountered: