fix: remove unreachable code and duplication in fee services#4036
Conversation
SuiFeeService had an unreachable BasicFee return after a GasFees return in calculateDefaultFees. UtxoFeeService had calculateFees duplicating calculateDefaultFees body instead of delegating to it. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughTwo fee service files were refactored to remove dead code and consolidate logic. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
return BasicFee(...)afterreturn GasFees(...)inSuiFeeService.calculateDefaultFeesBasicFeeimport fromSuiFeeServiceUtxoFeeService.calculateFeesby delegating tocalculateDefaultFeesinstead of duplicating its body (matches the pattern used byTonFeeServiceandCosmosFeeService)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit