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

ABICodecObject类中的decodeJavaObjectAndGetOutputObject解析数据异常 #845

Open
zhouxin11111 opened this issue Nov 21, 2023 · 1 comment

Comments

@zhouxin11111
Copy link

方法中的 case BYTES:例子中不应该用new String,我出现了乱码问题,我的上链原文是0xdd4cca4dd73078858a3261c3d22f706971b48fa2af862efe1141d2ff9156b729,对应合约的byte32,到byte[]是正常的也就是formatBytesN(argObject),此时不应该用new String,应该是16进制解码,这里new String就直接乱码了,上链的是did服务的凭证hash

                    case BYTES:
                        result.add(new String(formatBytesN(argObject)));
                        continue;
@kyonRay
Copy link
Member

kyonRay commented Nov 21, 2023

Hi @zhouxin11111
请提供使用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