Web3J Cli生成文件位置
我正在使用Web3J CLI生成Java代码。我的命令如下(我当前处于Solidity文件夹中):
web3j generate solidity -b tempFiles/MasterDAO.bin -a tempFiles/MasterDAO.abi -o ../java -p org.web3j
ABI文件和bin文件保存在tempfiles文件夹中。 但是,当我按ENTER时,Web3J说
Generating org.web3j.MasterDAO ... not a valid name:
我会混淆出了问题。谢谢!
I'm using web3j CLI to generate java code. My command is as below (i'm in solidity folder currently):
web3j generate solidity -b tempFiles/MasterDAO.bin -a tempFiles/MasterDAO.abi -o ../java -p org.web3j
And my file structure is as the graph shows.
The abi file and bin file is saved in tempFiles folder.
However, when I press enter, the web3j says that
Generating org.web3j.MasterDAO ... not a valid name:
I'm confusing what goes wrong. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已修复,Web3J不支持事件和 emit 关键字,请删除它们,并且效果很好。
Fixed, the web3j does not support event and emit keywords, remove them and it works fine.