I’m facing an error in the following function:
fn createRequest(ref self: ContractState, description: ByteArray, value: usize, recipient: ContractAddress) {
let newRequest = Request { description, value, recipient, isComplete: false, yesVotes: 0, voters: Default::default() };
self.requests.append(newRequest);
}
None of the properties of my Struct are being recognized by the compiler.
The link for the complete code is here: https://github.com/MullerEsposito/cairo-crowdfunding/tree/muller