-
Notifications
You must be signed in to change notification settings - Fork 184
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): block env wrongly updated with cli value #1744
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1744 +/- ##
==========================================
+ Coverage 68.01% 68.06% +0.04%
==========================================
Files 304 304
Lines 32912 32950 +38
==========================================
+ Hits 22385 22426 +41
+ Misses 10527 10524 -3 ☔ View full report in Codecov by Sentry. |
@@ -179,7 +179,6 @@ impl<EF: ExecutorFactory> Backend<EF> { | |||
|
|||
block_env.number += 1; | |||
block_env.timestamp = timestamp; | |||
block_env.l1_gas_prices = self.config.env.gas_price.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this line is not removed, the updated tests would fail
cc @broody can you test on this pr |
@kariy confirmed issue fixed, thx! Appreciate another alpha release with this |
) ref #1744 to limit and simplify how gas prices can be set in katana. currently there are two ways to do this: 1. using the `--*-gas-price` cli arg 2. set in the genesis config this change only allow the gas price to be set using one way or the other and not through a combination of both (eg pass a genesis config but set gas prices in cli) which makes it counterintuitive imo
fix #1724
updated the test to make sure the gas prices doesn't get modified with the cli value in the
update_block_env
method.now actual tx execution would result in a similar fee value that you get when doing fee estimation