Skip to content

GitLab

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

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

  • chainmaker
  • sdk-gosdk-go
  • Issues
  • #6

Closed
Open
Opened Feb 04, 2023 by li li@lilihli

ABI.Unpack解码返回结果出错

合约接口返回值为字符串数组时,ABI.Unpack解码的结果不正确。

function selectByKey(string _key) public view returns(string[],address[],string[])

上面这个函数执行后,返回的第一个和第三个字符串数组类型的返回值不正确。

然后我尝试用cmc执行调用,也返回了不正确的结果,请帮忙确认一下当前SDK库是否存在问题,谢谢!

下面附上合约源码和SDK代码。

evidence.sol

chainmaker-gosdk.zip

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/sdk-go#6

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