You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Title:
Errors in Web3j-Generated Wrapper Classes: "Cannot find symbol: class LinkReference" and Incorrect Package Name
Body:
I'm working on a Spring Boot project that interacts with Ethereum smart contracts. I'm using Web3j to compile Solidity contracts and generate ABI, binary files, and Java wrapper classes. However, the generated wrapper classes contain the following issues:
Compilation Error:
/home/abdulmueedshahbaz/springboot/eth/eth/src/main/java/generated/com/zuehlke/blockchain/model/HelloWorld.java:204:51
java: cannot find symbol
symbol: class LinkReference
location: class org.web3j.tx.Contract
This error suggests that the class LinkReference is missing in the generated code.
Due to this issue, I'm unable to run my Spring Boot application.
Title:
Errors in Web3j-Generated Wrapper Classes: "Cannot find symbol: class LinkReference" and Incorrect Package Name
Body:
I'm working on a Spring Boot project that interacts with Ethereum smart contracts. I'm using Web3j to compile Solidity contracts and generate ABI, binary files, and Java wrapper classes. However, the generated wrapper classes contain the following issues:
Compilation Error:
This error suggests that the class
LinkReference
is missing in the generated code.Due to this issue, I'm unable to run my Spring Boot application.
My Setup:
Dependencies (Maven):
Build Plugins (Maven):
Steps I Followed:
src/main/resources/solidity/
.mvn generate-sources
to generate the ABI, binary, and wrapper classes.Issues:
HelloWorld.java
wrapper class references aLinkReference
class, which does not seem to exist inorg.web3j.tx.Contract
.Question:
LinkReference
error in the Web3j-generated wrapper classesAny guidance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: