PatrickAlphaC / hardhat-fund-me-fcc

82 stars 183 forks source link

check funders array before storing funder #88

Closed byte14 closed 1 year ago

byte14 commented 1 year ago

We are storing the same funder multiple times, and we don't want that, we should check if the funder is already in the funders array and if it is already in then just increase the fund balance and if funder is new then store it in the array.

PatrickAlphaC commented 1 year ago

Thanks! You're right, we should have this, but to keep this the same as the video, I'm going to close this.