I am wondering what pattern I am supposed to follow in Solidity to take in an array of structs as a parameter. I am translating code from CPP and mostly everything translates directly besides this (and variable scoping in functions).
TypeError: This type is only supported in the new experimental ABI encoder. Use "pragma experimental ABIEncoderV2;" to enable the feature.
struct HorseRaceData {
HorseData data;
uint64 currentSpeed;
uint64 currentStamina;
uint64 distanceTraveled;
uint64 time;
bool done;
}
function placementSimulation (HorseRaceData[] memory horses) public {...}