-
Notifications
You must be signed in to change notification settings - Fork 110
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(zetaclient): add block by number result nil check #2882
Conversation
WalkthroughWalkthroughThe changes introduce an enhanced error handling condition in the Changes
Possibly related PRs
Tip OpenAI O1 model for chat
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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
Documentation and Community
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2882 +/- ##
===========================================
- Coverage 66.89% 66.88% -0.01%
===========================================
Files 377 377
Lines 21082 21084 +2
===========================================
Hits 14103 14103
- Misses 6315 6316 +1
- Partials 664 665 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- zetaclient/chains/evm/observer/observer.go (1 hunks)
Additional context used
Path-based instructions (1)
zetaclient/chains/evm/observer/observer.go (1)
Pattern
**/*.go
: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
GitHub Check: codecov/patch
zetaclient/chains/evm/observer/observer.go
[warning] 319-319: zetaclient/chains/evm/observer/observer.go#L319
Added line #L319 was not covered by tests
We're getting this panic on mainnet which results in inbounds not being processed.
on release/v19 it points to this function. It looks like it can return nil and no error. Add an explicit nil check to ensure the
block.Transactions
does not nil dereference.Related to #2881
Summary by CodeRabbit