LESSON 4: Fund Me. Getting an error when trying to reset an array. #5811
Answered
by
roychaadit
NIAZELOPER
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
roychaadit
Jul 7, 2023
Replies: 2 comments 2 replies
-
can you post your code and error message |
Beta Was this translation helpful? Give feedback.
1 reply
-
To reset, you must do Funders = new address[](0); Also I think your loop should be for (uint256 FundersIndex = 0; FundersIndex < Funders.length; FundersIndex+=1) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
NIAZELOPER
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reset, you must do
Also I think your loop should be