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

Improvements on modifier/constructor calls support #301

Merged
merged 2 commits into from
Jul 24, 2019

Conversation

montyly
Copy link
Member

@montyly montyly commented Jul 24, 2019

  • Add support for ternary operator in modifier/constructor calls (function f() public modif( condition?1:2))
  • Add NOP IR to represent void constructor
  • Add void-constructor detector

Void constructors are calls to non-existing constructor, such as:

contract C{ }

contract D is C{
    constructor() public C(){
    }
}

Add NOP IR to represent void constructor
Add void-constructor detector
@montyly montyly merged commit d8b0312 into dev Jul 24, 2019
@montyly montyly deleted the dev-fix-ternary-modifier-calls branch July 24, 2019 07:30
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.

None yet

1 participant