Answers for "solidity append to array"

0

solidity append to array

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
  });
}
Posted by: Guest on March-23-2022

Browse Popular Code Answers by Language