Couldn't get an advisory to go away on FundMe.sol exercise, curious where I messed up. #4737
Unanswered
JohnWukong
asked this question in
Q&A
Replies: 1 comment 1 reply
-
try this function withdraw() public onlyOwner {
for (uint256 funderIndex = 0;funderIndex < funders.length; funderIndex++) {
address funder = funders[funderIndex]; // <==== change this line
addressToAmountFunded[funder] = 0; // <==== change this line
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As 'strongly suggested', I am asking about a problem I had during FundMe.sol exercise.
The code compiled and ran/deployed, and as far as I know I copied the code verbatim, but I get an error on the following code.
I left both in and it ran fine, but I'm OCD enough that I'd like to know whether this is normal or I should of omitted one mention...
Thanks in advance
John
Beta Was this translation helpful? Give feedback.
All reactions