Как добавить новый пустой экземпляр Parent в список родителей в приведенном ниже примере кода? я продолжаю получать
UnimplementedFeatureError: Copying of type struct Test.Child memory[] memory
to storage not yet supported.
Минимальный пример:
contract Test {
struct Child { }
struct Parent { Child[] children; }
Parent[] parents;
function test() {
parents.push(Parent(new Child[](0)));
}
}