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

Fix and add browser support for tokenize function #1

Merged
merged 4 commits into from
Feb 10, 2020

Conversation

fvictorio
Copy link

This PR makes two changes:

  • Fix an issue with the tokenize function (the necessary files weren't being copied when the build was done)
  • Make the tokenize function work in the browser. Before this, the Solidity.tokens was read on runtime using the fs module. I added a babel plugin to inline it in the necessary module.

(This PR does pretty much the same as federicobond#100, but the commits are different because they come from a different branch. I don't know if this might cause merge conflicts with upstream in the future.)

The tokenize function uses `fs` to read Solidity.tokens on runtime. This
doesn't work in the browser. With this change, the parse and tokenize
functions can be used in the browser.
@fvictorio
Copy link
Author

@GNSPS could you review this?

@GNSPS
Copy link
Collaborator

GNSPS commented Feb 10, 2020

Thank you so much @fvictorio! These were some crazy days! I'll be monitoring activity much closer from now on! 🙏

@GNSPS
Copy link
Collaborator

GNSPS commented Feb 10, 2020

LGTM, merging

@GNSPS GNSPS merged commit d9789a2 into Consensys:master Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants