7

solidity 0.5.X里如何在一个接口里返回不定长数组 比如这个结构里struct teamMember{...

 3 years ago
source link: https://learnblockchain.cn/question/1873
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
solidity 0.5.X里如何在一个接口里返回不定长数组 比如这个结构里struct teamMember{ uint256 totalAmount; address[] top10Members; }

solidity 0.5.X里如何在一个接口里返回不定长数组 比如这个结构里struct teamMember{ uint256 totalAmount; address[] top10Members; }

Tiny熊 - 布道者 3天前

  擅长:智能合约,以太坊

目前 solidity 不支持。

可以想办法拆为多个方法或多个参数。

您需要登录后才可以回答问题,登录 或者 注册

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK