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

对于合约方法中byte32类型的入参,解码出来input是乱码的 #66

Open
maoqingheng opened this issue Apr 25, 2024 · 2 comments

Comments

@maoqingheng
Copy link

屏幕截图 2024-04-25 101840
@maoqingheng
Copy link
Author

ABICodecObjectUtil中对于byte类型的解析
case BYTES:
{
result.add(new String(argObject.getBytesValue().getValue()));
break;
}
此处new String会将byte[]解析成乱码,可修改自行解析成16进制的字符串

@wangyue168git
Copy link
Contributor

您好,ABICodecObjectUtil是Java SDK的,是不是入参的时候可以考虑编码成hex呢

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