Web3J Cli生成文件位置

发布于 2025-01-31 09:56:11 字数 514 浏览 4 评论 0原文

我正在使用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.
enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疯到世界奔溃 2025-02-07 09:56:11

已修复,Web3J不支持事件 emit 关键字,请删除它们,并且效果很好。

Fixed, the web3j does not support event and emit keywords, remove them and it works fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文