我试图使用松露而不是获取wrapperclass.java文件来生成smart契约的java包装类

下面是我用来生成该合同的abi/Json的命令
anikett@anikett:~/myproject$ ls -l build/contracts/10月16日12:12 Migrations.json -rw-r-r-1阴离子电池45796 10:12 Wallet.json
之后,使用了im用于java包装类的geration命令。
anikett@anikett:~/myproject$ truffle generate ./build/contracts/Wallot.json -o . -p /home/anikett/Documents/workspace-sts-3.9.9.RELEASE/JavaEthereumConnectionExample/src/main/java/com/ethereum/connect.javaethereum.wrapper发布于 2019-10-16 08:09:18
如果您想要生成,应该使用web3j cli。您仍然可以使用块菌契约架构。
$ web3j truffle generate [--javaTypes|--solidityTypes] /path/to/.json -o /path/to/src/main/java -p com.your.organisation.name
https://ethereum.stackexchange.com/questions/76754
复制相似问题