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

Errors for demo use case #41

Closed
zweicoder opened this issue Aug 20, 2016 · 1 comment
Closed

Errors for demo use case #41

zweicoder opened this issue Aug 20, 2016 · 1 comment

Comments

@zweicoder
Copy link

zweicoder commented Aug 20, 2016

Using "solc": "^0.3.6", in a project and trying to compile the demo:

var solc = require('solc');
var input = {
    'lib.sol': 'library L { function f() returns (uint) { return 7; } }',
    'cont.sol': 'import "lib.sol"; contract x { function g() { L.f(); } }'
};
var output = solc.compile({sources: input}, 1);
output.formal.errors.forEach((err)=>{

    console.log(err)
})

Output:

lib.sol:1:1: Error: Libraries not supported.
library L { function f() returns (uint) { return 7; } }
^-----------------------------------------------------^

lib.sol:1:35: Error: Unnamed return variables not yet supported.
library L { function f() returns (uint) { return 7; } }

Edit:

After looking into it more, I assume this is only error for formal verification and should not affect the compilation of contracts? If so feel free to close this issue :)

@chriseth
Copy link
Contributor

Yes, this only concerns formal verification, you should still get the compilation results.

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

No branches or pull requests

2 participants