Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix(fee): count events of inner calls in get_tx_events_gas_cost #1744

Merged
merged 1 commit into from
Mar 31, 2024

Conversation

avi-starkware
Copy link
Collaborator

@avi-starkware avi-starkware commented Mar 31, 2024

This change is Reviewable

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.94%. Comparing base (86fab56) to head (cc7a2f3).

Additional details and impacted files
@@               Coverage Diff                @@
##           main-v0.13.1    #1744      +/-   ##
================================================
+ Coverage         70.93%   70.94%   +0.01%     
================================================
  Files                59       59              
  Lines              8076     8079       +3     
  Branches           8076     8079       +3     
================================================
+ Hits               5729     5732       +3     
  Misses             1937     1937              
  Partials            410      410              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Yoni-Starkware Yoni-Starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @barak-b-starkware and @giladchase)

@avi-starkware avi-starkware merged commit d2eeffe into main-v0.13.1 Mar 31, 2024
13 checks passed
@avi-starkware avi-starkware deleted the avi/fees/fix-event-costs branch March 31, 2024 14:38
gswirski pushed a commit to reilabs/blockifier that referenced this pull request Jun 26, 2024
…#1744)

fix starkware-libs#1724

updated the test to make sure the gas prices doesn't get modified with the cli value in the [`update_block_env`](https://github.com/dojoengine/dojo/blob/ad58e43df7d162736fced6b071d59732183e77fb/crates/katana/core/src/backend/mod.rs#L182) method.

now actual tx execution would result in a similar fee value that you get when doing fee estimation
gswirski pushed a commit to reilabs/blockifier that referenced this pull request Jun 26, 2024
…arkware-libs#1745)

ref starkware-libs#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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants