-
Notifications
You must be signed in to change notification settings - Fork 543
fix: handle short proxyStorage in getBeaconFromStorageSlot #7281
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
fix: handle short proxyStorage in getBeaconFromStorageSlot #7281
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
WalkthroughThe function Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant getBeaconFromStorageSlot
Caller->>getBeaconFromStorageSlot: Call with proxyStorage
alt proxyStorage length >= 40
getBeaconFromStorageSlot-->>Caller: Return last 40 chars (with "0x" prefix)
else proxyStorage length < 40 or error
getBeaconFromStorageSlot-->>Caller: Return undefined
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #7281 +/- ##
=======================================
Coverage 55.57% 55.58%
=======================================
Files 909 909
Lines 58667 58670 +3
Branches 4158 4163 +5
=======================================
+ Hits 32606 32613 +7
+ Misses 25954 25950 -4
Partials 107 107
🚀 New features to boost your workflow:
|
PR-Codex overview
This PR updates the logic in the
resolveImplementation.ts
file to ensure that the function returnsundefined
if theproxyStorage
length is less than 40 characters, enhancing error handling.Detailed summary
proxyStorage.length
is at least 40 before returning the sliced value.proxyStorage
is shorter than 40 characters, the function now returnsundefined
.Summary by CodeRabbit