Skip to content

Lesson 3: Fund Me #1808

Answered by Nlferu
propeltrain asked this question in Q&A
Dec 12, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello @propeltrain

y += x is equal to y = y + x

so in your case it will be:

addressToAmountFunded[msg.sender] += msg.value

//will be equal to

addressToAmountFunded[msg.sender] = addressToAmountFunded[msg.sender] + msg.value

Let me know if it is clear enough for you :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cromewar
Comment options

@propeltrain
Comment options

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