Closed flefevre closed 6 years ago
which version of solidity have you installed? On my Windows Machine with
C:\>solc --version
solc, the solidity compiler commandline interface
Version: 0.4.18+commit.9cf6e910.Windows.msvc
and the maven plugin
<!-- https://mvnrepository.com/artifact/org.web3j/web3j-maven-plugin -->
<dependency>
<groupId>org.web3j</groupId>
<artifactId>web3j-maven-plugin</artifactId>
<version>0.1.4</version>
</dependency>
I get code like this:
public RemoteCall<DynamicArray<Int256>> subtractScalar(DynamicArray<Int256> self, Int256 a) {
Function function = new Function("subtractScalar",
Arrays.<Type>asList(self, a),
Arrays.<TypeReference<?>>asList(new TypeReference<DynamicArray<Int256>>() {}));
return executeRemoteCallSingleValueReturn(function);
}
which compiles fine
Hello, the problem comes in fact from web3j. Have a look to https://github.com/web3j/web3j/issues/303 which link to https://github.com/web3j/web3j/issues/238. personnaly i have the version 0.1.5-snapshot, web3j-maven-plugin with a modify version to match last version solcj. perhaps we could close this issue as it is taken into account by the other one?
we can close this item, seems to be solved
Dear web3j-maven-plugin,
thanks for the work done and i wish an happy new year.
I have extracted here a small smartcontract that do not compile anymore with your java generator
the generated code snipped is:
Do you have any idea why it is not working anymore?
I would appreciate your help. Thanks Francois from France