Hello everyone, i'm new with solidity and I have a problem with a nested struct. Basically I have Receipt and Proposal and I want to map the receipts in Proposal struct but it gives me an error when i'm creating a new Proposal.
struct Proposal{ mapping (address => Receipt) receipts}
struct Receipt{ ... }
Proposal memory newProposal = Proposal({ ... }) // here it gives me an error
Sep 21, 2020, 5:19 PM