chore: rm leftover InvocResult - #7457
Conversation
WalkthroughGas simulation and estimation no longer return or construct ChangesGas estimation result simplification
Estimated code review effort: 2 (Simple) | ~15 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
The base branch was changed.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/rpc/methods/gas.rs (1)
212-212: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winDocument the return tuple.
estimate_call_with_gasis public and returns an unnamed three-value tuple. Document each value and state thatApplyRetcarries the execution status.Proposed change
+ /// Simulates a message with the block gas limit. + /// + /// Returns the application result, pending messages applied before the + /// simulation, and the simulation tipset. pub async fn estimate_call_with_gas(As per coding guidelines, “Document public functions and structs with doc comments”.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/rpc/methods/gas.rs` at line 212, Document the public estimate_call_with_gas function by adding a doc comment that names and explains all three returned values—ApplyRet, Arc<Vec<ChainMessage>>, and Tipset—and explicitly states that ApplyRet contains the execution status.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/rpc/methods/gas.rs`:
- Line 212: Document the public estimate_call_with_gas function by adding a doc
comment that names and explains all three returned values—ApplyRet,
Arc<Vec<ChainMessage>>, and Tipset—and explicitly states that ApplyRet contains
the execution status.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: b0db3bcf-c8ea-41e8-a608-48108b42d524
📒 Files selected for processing (4)
src/rpc/methods/eth.rssrc/rpc/methods/gas.rssrc/rpc/methods/state/types.rssrc/state_manager/message_simulation.rs
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
filecoin-project/lotus(manual)
💤 Files with no reviewable changes (1)
- src/rpc/methods/state/types.rs
Codecov Report❌ Patch coverage is
Additional details and impacted files
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Summary of changes
Changes introduced in this pull request:
Reference issue to close (if applicable)
Closes
Other information and links
On top of #7456
Change checklist
Outside contributions
Summary by CodeRabbit