Question : dynamic array solidity
Answered by : abdulhakim
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 });
}
Source : | Last Update : Wed, 30 Mar 22