-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeArena] - [G-26] : Remove double reading of state variable #78
Conversation
I see the issue is marked |
@adrien-supizet no, the auditor is anon 🤷🏻♂️ (impossible to reach) |
@adrien-supizet Should we try to get an answer or skipping this part of the issue ? |
If you kind of understand the issue mentioned, let's discuss it and try to figure it out. Otherwise let's skip it. |
Just found out : for (uint256 i = 0; i < requiredAddresses.length; i++) {
bytes32 name = requiredAddresses[i];
// Note: can only be invoked once the resolver has all the targets needed added
address destination = resolver.getAddress(name);
if (destination != address(0)) {
addressCache[name] = destination;
} else {
delete addressCache[name];
}
emit CacheUpdated(name, destination);
} We must extract the variable |
660b940
to
8d1a8c9
Compare
@adrien-supizet The Just also extracted |
Issue => code-423n4/2021-11-nested-findings#98