-
Notifications
You must be signed in to change notification settings - Fork 543
handle empty address in fetchPublishedContracts #5702
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
handle empty address in fetchPublishedContracts #5702
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5702 +/- ##
=======================================
Coverage 51.52% 51.52%
=======================================
Files 1094 1094
Lines 57592 57592
Branches 4756 4756
=======================================
Hits 29677 29677
Misses 27198 27198
Partials 717 717
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
Merge activity
|
partially fixes: DASH-572
e89f8c7
to
f701b2d
Compare
|
partially fixes: DASH-572
PR-Codex overview
This PR refactors the
fetchPublishedContracts
function to improve error handling and eliminate the use ofinvariant
for address validation. It introduces a try-catch block to handle potential errors gracefully and returns an empty array in case of invalid input or errors.Detailed summary
invariant
checks foraddress
andresolvedAddress
.