Skip to content

Error: Lesson 4 part 8 array and struct-II #721

Answered by 0xSanyam
berserek20 asked this question in Q&A
Discussion options

You must be logged in to vote

@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
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@0xSanyam
Comment options

@berserek20
Comment options

@0xSanyam
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants