Skip to content
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

feat: sanitize abi #56

Merged
merged 3 commits into from
Mar 7, 2019
Merged

feat: sanitize abi #56

merged 3 commits into from
Mar 7, 2019

Conversation

nachomazzara
Copy link
Contributor

Sanitize ABI events with parameters name which conflict with web3 0.X.X

fulfillContractMethods(this, abi)
const sanitizedABI = Abi.sanitize(abi)
super(address, sanitizedABI)
fulfillContractMethods(this, sanitizedABI)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks 🆗 but shouldn't we do this for every contract (on Contract maybe)? or is it more of a specific case kind of thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should sanitize ABIs when we need it.

I mean, if we don't have this issue with other contracts, we shouldn't sanitize them

@nicosantangelo nicosantangelo merged commit c741bf2 into master Mar 7, 2019
@nicosantangelo nicosantangelo deleted the feat/sanitize-abi branch March 7, 2019 17:06
@menduz
Copy link
Member

menduz commented Mar 7, 2019

🎉 This PR is included in version 8.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@menduz menduz added the released label Mar 7, 2019
nicosantangelo pushed a commit to decentraland/marketplace-legacy that referenced this pull request Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants