843 B
843 B
PriceFeedKeeper Variable Name Fix
Date: 2025-12-24
Status: ✅ Fixed
🐛 Issue
After renaming the return variable from needsUpdate to updateNeeded in checkUpkeep(), the code inside the function was still trying to assign to the old variable name needsUpdate.
Error:
Error (7576): Undeclared identifier. Did you mean "_needsUpdate" or "needsUpdate"?
--> contracts/reserve/PriceFeedKeeper.sol:104:13:
|
104 | needsUpdate = true;
| ^^^^^^^^^^^
✅ Fix
Changed assignments from needsUpdate to updateNeeded:
// Before
needsUpdate = true;
needsUpdate = false;
// After
updateNeeded = true;
updateNeeded = false;
📋 Files Modified
contracts/reserve/PriceFeedKeeper.sol(lines 104, 107)
Last Updated: 2025-12-24