'Getting Error :: Struct containing a (nested) mapping cannot be constructed
function createRequest(string memory description, uint value, address recipient) public Restricted{
Getting error:
Struct containing a (nested) mapping cannot be constructed. Request memory newRequest = Request({
| ^ (Relevant source part starts here and spans across multiple lines).
Request memory newRequest = Request({ //error here
description: description,
value: value,
recipient: recipient,
complete: false,
approvers: 0
});
requests.push(newRequest);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
