-
Notifications
You must be signed in to change notification settings - Fork 620
fix: handle 0n as from/to blocks in getContractEvents #4919
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 0n as from/to blocks in getContractEvents #4919
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: d4c423c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @joaquim-verges and the rest of your teammates on |
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4919 +/- ##
=======================================
Coverage 47.60% 47.60%
=======================================
Files 1057 1057
Lines 57228 57228
Branches 3923 3924 +1
=======================================
+ Hits 27241 27245 +4
+ Misses 29298 29294 -4
Partials 689 689
*This pull request uses carry forward flags. Click here to find out more.
|
Merge activity
|
Fixes CNCT-1987 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the validation of `fromBlock` and `toBlock` parameters in the `getContractEvents` function to ensure they are explicitly defined before performing any calculations. ### Detailed summary - Updated condition to check if `fromBlock` and `toBlock` are not `undefined` instead of truthy. - Adjusted logic for setting `restParams.toBlock` and `restParams.fromBlock` based on the new checks. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
27914b9 to
d4c423c
Compare

Fixes CNCT-1987
PR-Codex overview
This PR focuses on improving the validation of
fromBlockandtoBlockinputs in thegetContractEventsfunction to ensure they are properly defined. It fixes the handling of cases where these values might be0n.Detailed summary
fromBlockandtoBlockto ensure they are notundefined.restParams.toBlockandrestParams.fromBlockto account for inclusive ranges.