Timeline for Solidity Error: Struct containing a (nested) mapping cannot be constructed
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 5, 2020 at 7:27 | comment | added | hrkrshnn | @alper you don't really set the mapping for approvals. If you have defined a local struct inside a function, then it has to be a pointer to a storage struct. | |
Oct 4, 2020 at 14:40 | comment | added | alper |
Where do you set the mapping for approvals ? @hrkrshnn
|
|
Sep 17, 2020 at 18:54 | vote | accept | Sang-hoon Shin | ||
Sep 17, 2020 at 18:53 | comment | added | Sang-hoon Shin | Thank you for yout help. I'll try. | |
Sep 17, 2020 at 18:51 | vote | accept | Sang-hoon Shin | ||
Sep 17, 2020 at 18:54 | |||||
Sep 17, 2020 at 8:33 | comment | added | hrkrshnn |
You can change it to mapping(address => Request)
|
|
Sep 14, 2020 at 20:06 | comment | added | Sang-hoon Shin | Thank you very much! Then is there any way to put a specific address (which is from Request struct) to the key(instead of uint) of a mapping? | |
Sep 14, 2020 at 16:38 | history | answered | hrkrshnn | CC BY-SA 4.0 |