Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webase导出的java项目实现不了合约里的功能 #308

Open
lijingbonb opened this issue Jun 5, 2024 · 1 comment
Open

webase导出的java项目实现不了合约里的功能 #308

lijingbonb opened this issue Jun 5, 2024 · 1 comment

Comments

@lijingbonb
Copy link

PixPin_2024-06-05_11-32-44
第一个是合约,里面有个msg.sender,记录调用当前方法的用户地址,而在转换出来的java项目中,raw和service里面都没有相对应的实现这个功能,是直接在配置文件里面写了用户私钥,然后调用的时候计算出来地址,怎么才能在不同用户调用方法的时候传入不同用户的私钥签署交易呢

@CodingCattwo
Copy link
Contributor

java代码中仅记录了合约的abi和bin。合约的代码逻辑已打包到bin中。

如果需要动态指定不同的私钥去调用合约,可以根据java脚手架的代码改写,或者参考fisco bcos java-sdk的在线文档

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants