I have the below code
struct Ticket {
uint256 id;
uint256[] numbers;
address payable owner;
}
function enter(uint256[] memory userNumbers) public {
Ticket memory newTicket = Ticket(
id,
userNumbers,
payable(msg.sender)
);
entries[id][msg.sender] = newTicket;
}
However, when I inspect the Ticket object saved, I only get the id
, and address
.
How should I properly save the userNumbers
inside the struct?