Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

iterate over list array in solidity

address[] public myList;

function iterateOverList() public {

  address currentAddress;
  for (uint i=0; i < myList.length; i++) {
    currentAddress = myList[i];
  }
}
Source by ethereum.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #iterate #list #array #solidity
ADD COMMENT
Topic
Name
6+6 =