Timeline for Solidity Error; TypeError: Struct containing a (nested) mapping cannot be constructed
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 10 at 16:01 | comment | added | Rob Hitchens |
Notice that the solution creates a storage pointer for the nee proposal in newProposal() . This is important. You can't create a mapping in memory including inside a struct.
|
|
Feb 10 at 13:34 | history | answered | Mila A | CC BY-SA 4.0 |