Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #1404

Closed
Open
Opened Jul 09, 2025 by 18086439953@18086439953

EVM部署solidity合约,使用Java SDK无法正确解析ResultOuterClass.TxResponse中的返回结果。

【问题分类】

  • [√] SDK相关

【问题描述】(请对问题进行描述,方便定位问题)

使用Java SDK调用合约方法成功后,不管使用什么方法都无法正确得到合约的返回值。

期望结果:0,

image

实际结果:带有异常符号的字符串或一串数字(见下图)

一、使用ResultOuterClass.TxResponse类下的getContractResult()的getResult()方法,解析结果如下:数字0前面有一串异常符号。

image

二、使用Numeric.toBigInt方法,解析结果如下:一串数字。

image image

【系统信息】(请填写系统信息,方便定位问题)

  • chainmaker-java version * : [v2.3.3]
Edited Jul 09, 2025 by 18086439953
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#1404

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。