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

Support abstract contracts. #281

Open
juharris opened this issue Feb 13, 2020 · 5 comments
Open

Support abstract contracts. #281

juharris opened this issue Feb 13, 2020 · 5 comments

Comments

@juharris
Copy link

Description
Solidity 0.6 introduces the abstract keyword for abstract contracts: https://solidity.readthedocs.io/en/v0.6.0/contracts.html#abstract-contracts

Works:

// Test.sol
pragma solidity ^0.6;

contract Test {
    uint a = 1;
}

Does not work:

// Test.sol
pragma solidity ^0.6;

abstract contract Test {
    uint a = 1;
}
$ npx solium --file Test.sol

Test.sol
  3:1    error    Syntax error: unexpected token a

✖ 1 error found.
@gorgos
Copy link

gorgos commented Mar 10, 2020

Likewise the new override keyword.

@elenadimitrova
Copy link

Likewise the new receive and fallback functions :)
In general support the 0.6 syntax changes.

@quezak
Copy link

quezak commented Jul 30, 2020

Is there a workaround? Or maybe a fork that already has Solidity 0.6 syntax support?

@gorgos
Copy link

gorgos commented Jul 30, 2020

@quezak You can ignore those files or use https://github.com/protofire/solhint.

@quezak
Copy link

quezak commented Jul 31, 2020

I can't ignore all my contract files :D I'll try out if solhint works better, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants