Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dynamic array solidity

var myContract;
var rowToGet = 0; // 1,2,3
var instance = MyContract.Deployed()
  .then(function(instance) {
    myContract = instance;
    return myContract.myBytesArray(rowToGet);
  })
  .then(function(response) {
    console.log(response); // one element of the array
  });
}
 
PREVIOUS NEXT
Tagged: #dynamic #array #solidity
ADD COMMENT
Topic
Name
6+9 =