I am trying to initialize this struct and I can't figure out how to pass in a dynamically sized empty array..
uint8[] id;
users[msg.sender] = User( true, msg.sender, _username, block.timestamp, block.number, 0, id, 0);
arrayssoliditystruct
I am trying to initialize this struct and I can't figure out how to pass in a dynamically sized empty array..
uint8[] id;
users[msg.sender] = User( true, msg.sender, _username, block.timestamp, block.number, 0, id, 0);
Best Answer
The following will work: