Conversation
|
Claude finished @kariy's task —— View job PR Review Complete ✅Todo List:
Code Review FeedbackThis PR addresses a critical bug in L2 gas price mapping within the Starknet VM processor. The fix is well-implemented and necessary for correct gas pricing. ✅ Code Quality and Best Practices
✅ Bug Fix AnalysisThe original code had a significant bug where L2 gas prices were incorrectly mapped to L1 gas prices: // Before (incorrect):
l2_gas_price: eth_l1_gas_price, // Wrong value used!
// After (correct):
l2_gas_price: eth_l2_gas_price, // Proper L2 gas priceThis fix ensures that:
✅ Performance Considerations
✅ Security Concerns
|
Binary size report 📊
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #160 +/- ##
==========================================
- Coverage 73.32% 72.29% -1.03%
==========================================
Files 209 219 +10
Lines 23132 24120 +988
==========================================
+ Hits 16961 17438 +477
- Misses 6171 6682 +511 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Currently, we're not passing the L2 gas prices from the primitive
Headertoblockifier'sBlockContextbecause we initially didn't have support for L2 gas prices - not until #19. The L2 gas prices parameter is introduced in Starknet RPC spec 0.8 - which only recently we have support for. And with the recent addition of Starknet gas price oracle in #152, we can finally sample the L2 gas prices correctly instead of implicitly using the L1 gas prices.