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

trying to use your generator : problem of solidity compiler version #5

Closed
flefevre opened this issue Oct 26, 2017 · 4 comments
Closed

Comments

@flefevre
Copy link
Contributor

Dear web3j-maven-plugin developer,
I have tried to use your maven plugin. I am encountering one error:

[ERROR] Failed to execute goal org.web3j:web3j-maven-plugin:0.1.2:generate-sources (default) on project cf-smartcontracts: Could not compile solidity files
[ERROR] :1:1: Error: Source file requires different compiler version (current compiler is 0.4.8+commit.60cc1668.Linux.g++ - note that nightly builds are considered to be strictly less than the released version
[ERROR] pragma solidity ^0.4.17;
[ERROR] ^----------------------^
[ERROR] :109:9: Error: Undeclared identifier.
[ERROR] require(stakeholderList[supplierID].isRegistered == true);
<<<

I am under Linux centOS 7
I have adapted my PATH to go to the solc-static-linux file

solc --version
solc, the solidity compiler commandline interface
Version: 0.4.18+commit.9cf6e910.Linux.g++

How your plugin is finding the solc compiler ?
Thanks for your help.
Francois

@h2mch
Copy link
Contributor

h2mch commented Oct 31, 2017

SolC is taken from the "org.ethereum" "solcJ-all" library. this is extracted automatically into the java tmp folder and the maven plugin takes the version of this temp folder.
So you have to stick to the solc version, which is provided by org.ethereum.solcJ-all library.

Within the next few days, I plan to update the code to the newest version. Moreover I try to take the solc version which is in the system path first.

@conor10
Copy link

conor10 commented Oct 31, 2017

👍for going with system path first

@flefevre
Copy link
Contributor Author

flefevre commented Oct 31, 2017 via email

@h2mch
Copy link
Contributor

h2mch commented Oct 31, 2017

Version 0.1.3 is released. It support solc installed on system path and web3j version 3.0.1

@h2mch h2mch closed this as completed Oct 31, 2017
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

3 participants