Skip to content

Fix 0.7.0 error#24

Merged
fvictorio merged 3 commits into
solidity-parser:masterfrom
junderw:master
Jul 30, 2020
Merged

Fix 0.7.0 error#24
fvictorio merged 3 commits into
solidity-parser:masterfrom
junderw:master

Conversation

@junderw

@junderw junderw commented Jul 30, 2020

Copy link
Copy Markdown
Contributor

Is there a way to get the pragma setting?

@junderw

junderw commented Jul 30, 2020

Copy link
Copy Markdown
Contributor Author

This is currently a "beat with blunt object" fix for #23

@fvictorio

Copy link
Copy Markdown
Contributor

Hey @junderw, thanks for this!

I think this fix should be enough. So far this parser doesn't do different things for different versions: it's built to accept any valid solidity code for any version. This means that sometimes it can parse solidity code that won't compile, but that's fine for most use cases.

Can you remove the comment and add some tests for this?

@junderw

junderw commented Jul 30, 2020

Copy link
Copy Markdown
Contributor Author

I removed the comment and added a test to confirm the no-keyword case has visibility of public.

@fvictorio
fvictorio merged commit 2f2c54a into solidity-parser:master Jul 30, 2020
@fvictorio

Copy link
Copy Markdown
Contributor

Thanks @junderw!

@fvictorio

Copy link
Copy Markdown
Contributor

Just published @solidity-parser/parser@0.7.0 with this change.

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