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

Fisco-Bcos 2.9.0 sdk 合约事件返回问题,对于复杂类型,例如结构体 #806

Open
userInner opened this issue Jul 20, 2023 · 4 comments
Labels
codec resolved The issue has been resolved v2.x

Comments

@userInner
Copy link

使用java-sdk在调用函数,函数内部提交了一个事件,事件内容如下

struct A{
string var1;
string var2;
}


event demo1(A);
event demo2(bool);

使用webase查询事件时,对于demo2事件是可以计算到的。

image

使用webase查询事件时,对于demo1事件,则无法查询到。但是在webase中使用交易hash查询交易回执,回执中包含了event的数据

  • 无法查询到的event
    image
  • 回执数据
    image

sdk对于demo2这种,TransactionResponse 是包含的

image

sdk对于demo1事件,则查询不到

@kyonRay
Copy link
Member

kyonRay commented Jul 21, 2023

感谢提出issue,对应的Java sdk是哪一个版本?

@userInner
Copy link
Author

感谢提出issue,对应的Java sdk是哪一个版本?

我webase导出项目sdk版本是2.9.0

@kyonRay kyonRay added bug Something isn't working v2.x codec labels Jul 21, 2023
@kyonRay
Copy link
Member

kyonRay commented Jul 21, 2023

会在下个版本中集中解决编解码问题。

@kyonRay
Copy link
Member

kyonRay commented Aug 10, 2023

#814 这个PR解决了这个问题,可以试用2.10.0-SNAPSHOT版本的jar包

@kyonRay kyonRay added resolved The issue has been resolved and removed bug Something isn't working labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codec resolved The issue has been resolved v2.x
Projects
None yet
Development

No branches or pull requests

2 participants