Skip to content

Commit

Permalink
add commment
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Jan 7, 2025
1 parent 1b97fc8 commit f1a6403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/katana/core/src/backend/gas_oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ impl GasOracle {
GasOracle::Sampled(EthereumSampledGasOracle { prices, provider: eth_provider })
}

Check warning on line 60 in crates/katana/core/src/backend/gas_oracle.rs

View check run for this annotation

Codecov / codecov/patch

crates/katana/core/src/backend/gas_oracle.rs#L59-L60

Added lines #L59 - L60 were not covered by tests

/// For now, as Starknet doesn't provide a way to get the L2 gas prices, we just return a fixed
/// gas price values of 0. This is equivalent to calling [`GasOracle::fixed`] with 0 values for
/// both gas and data prices.
/// This is just placeholder for now, as Starknet doesn't provide a way to get the L2 gas
/// prices, we just return a fixed gas price values of 0. This is equivalent to calling
/// [`GasOracle::fixed`] with 0 values for both gas and data prices.
///
/// The result of this is the same as running the node with fee disabled.
pub fn sampled_starknet() -> Self {
Expand Down

0 comments on commit f1a6403

Please sign in to comment.