I am practicing my Solidity skills and while I did expect to get an error, I did not expect this error
TypeError: This type is only supported in the new experimental ABI encoder. Use "pragma experimental ABIEncoderV2;" to enable the feature. function getArray() public view returns (string[]) {
This is my code in Remix:
pragma solidity ^0.4.17;
contract Test {
string[] public myArray;
function Test() public {
myArray.push("hola");
}
function getArray() public view returns (string[]) {
return myArray;
}
}
What gives here?
Is this because the standard ABI does not support dynamic nested arrays?
I just want to confirm my understanding of the error. It is telling me that arbitrarily nested arrays in function arguments and return values are not supported in my current version but in the new experimental ABI encoder, is this what its saying?