current position:Home>What should be the format of the input parameters when calling this function?

What should be the format of the input parameters when calling this function?

2022-02-03 20:56:17 Q & A of Denglian community

function tiaoshi(address _address1, address _address2, address _address3, address _address4, address _address5) public{initGoods();initaddr();NewNode(1, _address1, "XX City -xx Pharmaceutical wholesale market company ");initgoodkind1(_address1);product(_address1, 0, "", 0, 100, 0);   //   AddAmount(_address1, 0, 100);NewNode(2, _address2, "xx City -xx Pharmaceutical factory ");initgoodkind2(_address2);NewNode(3, _address3, "xx City -xx Pharmaceutical Co., Ltd ");initgoodkind3(_address3);NewNode(4, _address4, "xx City -xx The hospital ");initgoodkind4(_address4);NewNode(5, _address5, "xx City -xx Pharmacy ( The pharmacy )");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);}



Take the answer 1:

Parameter is 5 An address : Address use 0x The string at the beginning indicates . Such as :

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






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032056149367.html

Random recommended