请问调用这段函数时输入的参数格式应该是什么样的?

function tiaoshi(address _address1, address _address2, address _address3, address _address4, address _address5) public{

initGoods();
initaddr();

NewNode(1, _address1, "XX市-xx药品批发市场公司");

initgoodkind1(_address1);

product(_address1, 0, "", 0, 100, 0);

   //   AddAmount(_address1, 0, 100);

NewNode(2, _address2, "xx市-xx药厂");

initgoodkind2(_address2);

NewNode(3, _address3, "xx市-xx医药有限公司");

initgoodkind3(_address3);

NewNode(4, _address4, "xx市-xx医院");

initgoodkind4(_address4);

NewNode(5, _address5, "xx市-xx药房(药店)");

initgoodkind4(_address5);

transport(_address1, _address2, 0, "materils101", 80, 0);

product(_address2, 0, "materialsA102", 60, 30, 0);
transport(_address2, _address3, 0, "medicineA1103", 20, 0);
product(_address3, 0, "medicineA1104", 10, 30, 0);

transport(_address3, _address4, 0, "medicineA2105", 20, 0);

product(_address4, 0, "medicineA2106", 15, 30, 0);

transport(_address4, _address5, 0, "medicineA3107", 29, 0);

}
请先 登录 后评论

最佳答案 2020-04-10 18:25

参数是5个地址:地址用0x开头的字符串表示。如:

tiaoshi("0xabc...","0xabc...","0xabc...","0xabc...","0xabc...")

请先 登录 后评论

其它 1 个回答

newchik
请先 登录 后评论
  • 2 关注
  • 0 收藏,2765 浏览
  • newchik 提出于 2020-04-08 12:00