Open walshe opened 3 years ago
maven.api have no parent class
not sure I follow.. how should I fix ?
This sounds like a problem related to web3j-maven-plugin
rather than webj
. The error (A type incompatibility occurred ...: class org.json.simple.JSONArray cannot be cast to class java.lang.String
) is the same one reported at https://github.com/web3j/web3j-maven-plugin/issues/83 and his fork (longdt/web3j-maven-plugin
) fixed it for me.
_Issuetitle
Generate Java proxies from external Truffle project
_Issuedescription
I have a truffle project that has a contract that extends OpenZeppelin's ERC1155. (Which I deploy to Ganache)
Meanwhile I have a Java maven project where I want to interact with Ganache and the smart contract. So far I have connected to Ganache using web3j and am able to read account balances etc.
Next I need to lookup the contract on the Java side with web3j and call my custom
mintCoupon
function. To so this I believe I need to generate Java proxies from the .sol files. I was hoping I could do this by referencing them in the web3j plugin (unless I can point them to json abi files instead?):Anyway, when I run the maven plugin I get the following issues:
Can anyone advise ?
_Issuecontext
Please provide additional information that might be helpful