📜  函数返回多个值solidity - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:48.349000             🧑  作者: Mango

代码示例1
pragma solidity ^0.4.24;
contract Testing {

  function returnsTwoValues() view returns (uint, string) {
    return (10,"test");
  }

  string s;
  uint u;

  function callReturnsTwoValues(uint a) external view{
   (u,s)= returnsTwoValues();
  }
}