-
Notifications
You must be signed in to change notification settings - Fork 194
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(katana): data gas prices #3001
Conversation
Ohayo, sensei! WalkthroughThis update modifies the gas pricing logic in the block_context_from_envs function within the executor module. Two new variables—strk_l1_data_gas_price and eth_l1_data_gas_price—are introduced to capture data transaction gas prices. They are initialized from block_env.l1_data_gas_prices with a fallback value of 1 when the provided value is zero. The gas_prices structure is updated accordingly to treat data gas prices as distinct from regular gas prices. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Caller
participant BFunc as block_context_from_envs
participant Env as block_env.l1_data_gas_prices
participant Gas as GasPrices Struct
Caller->>BFunc: Invoke block_context_from_envs()
BFunc->>Env: Retrieve l1_data_gas_prices (strk, eth)
Env-->>BFunc: Return gas price values
alt Price value equals 0
BFunc->>BFunc: Set data gas price to default (1)
else Price value exists
BFunc->>BFunc: Use provided gas price value
end
BFunc->>Gas: Update gas_prices structure with new data gas price values
BFunc-->>Caller: Return updated block context
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3001 +/- ##
==========================================
- Coverage 57.14% 57.10% -0.04%
==========================================
Files 429 429
Lines 56834 56871 +37
==========================================
- Hits 32477 32476 -1
- Misses 24357 24395 +38 ☔ View full report in Codecov by Sentry. |
Description
fixes the value passed as data_gas_prices
Tests
Added to documentation?
Checklist
scripts/prettier.sh
,scripts/rust_fmt.sh
,scripts/cairo_fmt.sh
)scripts/clippy.sh
,scripts/docs.sh
)Summary by CodeRabbit