Error: Lesson 4 part 8 array and struct-II #721
-
I'm having this error in my code - : from solidity: As it was saying remix was expecting an identifier not public. So, I tried removing it but then it started giving me this error-: ERROR-: from solidity: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@berserek20 from the code you provided, you should put the address[] and mapping part inside the contract block. contract fundme{
address[] public funders;
mapping(address => uint256) public addressToAmountFunded;
// rest of the code
} |
Beta Was this translation helpful? Give feedback.
@berserek20 from the code you provided, you should put the address[] and mapping part inside the contract block.