fix: fix from field in eth receipt rpc method#3507
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThis pull request updates the dependency version for Changes
Sequence Diagram(s)sequenceDiagram
participant B as Backend
participant E as EthMsg
participant L as Logger
B->>E: Call GetSender(b.chainID)
alt Successful Retrieval
E-->>B: Return sender address
else Error Occurs
E-->>B: Return error
B->>L: Log debug error message
end
Possibly related PRs
Suggested labels
Suggested reviewers
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
|
|
Shouldn't this have some kind of a change log entry? |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
rpc/backend/tx_info.go (1)
240-243: Consider adding a defensive nil check for chainID.While the current implementation is correct, adding a nil check for chainID would make the code more robust against potential configuration issues.
- from, err = ethMsg.GetSender(b.chainID) + if b.chainID == nil { + return nil, errors.New("chainID is nil") + } + from, err = ethMsg.GetSender(b.chainID)
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (3)
go.mod(1 hunks)rpc/backend/tx_info.go(1 hunks)rpc/backend/utils.go(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- go.mod
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.go`: Review the Go code, point out issues relative to ...
**/*.go: Review the Go code, point out issues relative to principles of clean code, expressiveness, and performance.
rpc/backend/utils.gorpc/backend/tx_info.go
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: start-e2e-test / e2e
🔇 Additional comments (2)
rpc/backend/utils.go (1)
110-113: LGTM! Improved error handling for sender parsing.The addition of chainID parameter and error logging enhances debugging capabilities while maintaining graceful error handling.
rpc/backend/tx_info.go (1)
240-243: LGTM! Consistent error handling pattern.The error handling and debug logging implementation aligns well with the changes in utils.go, providing a consistent approach across the codebase.
Description
ethermint PR: zeta-chain/ethermint#206
How Has This Been Tested?
Summary by CodeRabbit
Chores
Bug Fixes