Add full monorepo: virtual-banker, backend, frontend, docs, scripts, deployment
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
46
docs/PRICEFEEDKEEPER_VARIABLE_FIX.md
Normal file
46
docs/PRICEFEEDKEEPER_VARIABLE_FIX.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# 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`:
|
||||
|
||||
```solidity
|
||||
// Before
|
||||
needsUpdate = true;
|
||||
needsUpdate = false;
|
||||
|
||||
// After
|
||||
updateNeeded = true;
|
||||
updateNeeded = false;
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📋 Files Modified
|
||||
|
||||
- `contracts/reserve/PriceFeedKeeper.sol` (lines 104, 107)
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: 2025-12-24
|
||||
|
||||
Reference in New Issue
Block a user