I have a contract on the Ropsten test network and I am trying to return an array of structs but I am receiving the following error in my JS console.
I am including the following at the top of my contract
pragma solidity ^0.4.18;
pragma experimental ABIEncoderV2;
and this is the function I am calling
function getAllLand() external view returns (Land[]) {
return landRegister;
}
I know that this particular feature is experimental but any idea why this error might be thrown?
Thanks
