Collection[] public collections;
struct Book {
string name;
address writer;
bytes32 proof;
}
struct Collection {
Book[] books;
address collectionCreator;
}
// Question: how to push a new collection?
function newCollection() public {
collections.append(Collection({
collectionCreator: msg.sender,
// ISSUE HERE
books: <HELP>
}))
}
How to instantiate this new array of a struct inside a struct?