Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

solidity_names() recognizes interface #788

Merged
merged 1 commit into from
Aug 17, 2017

Conversation

LefterisJP
Copy link
Contributor

Rebased #737 on top of latest develop. Did not alter the old PR since it's used by raiden as a pinned version and don't want to have to deal with the newest pyethereum develop in raiden at the moment.

Based directly on top of pyethereum v1.6.1

This is a hack. Solidity 0.4.11 introduces the interface keyword and
breaks the solidity_names() function. This simply tweaks the function
so that it also treats interfaces like contracts and does not break.

I don't believe pyethereum should attempt to parse solidity files on its
own as compatibility issues like this are almost certain to arise also in the
future. For more long-term a different solution should be found where
pyethereum queries solidity itself and does not parse anything on its own.
@LefterisJP
Copy link
Contributor Author

@joeykrug ^

@joeykrug joeykrug merged commit 44848f5 into ethereum:develop Aug 17, 2017
@LefterisJP LefterisJP deleted the rebased_solidity_interface branch August 17, 2017 22:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants