I have a solidity contract getter function for an array of string :
string[] public flightsRegistered;
function getFlightsRegistered
(
)
public
view
returns(string[])
{
return flightsRegistered;
}
While compiling with truffle, this is what i get
Truffle compile error
TypeError: This type is only supported in the new experimental ABI encoder. Use "pragma experimental ABIEncoderV2;" to enable the feature. returns(string[])
Any other work around?
Web3 v1.0.0-beta.37
Truffle v5.0.9
Solidity v0.4.24 (solc-js)