Skip to content

Commit

Permalink
feat(snos_job): Quick renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Jul 22, 2024
1 parent 708991d commit 8919ed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/orchestrator/src/jobs/snos_job/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl SnosJob {
/// a logic to fetch the live price of ETH <=> STRK from an Oracle.
async fn get_gas_prices_from_l1(&self, config: &Config) -> Result<GasPrices> {
let http_rpc_client = config.http_rpc_client();
let fee_history = http_rpc_client.get_eth_fee_history().await?;
let fee_history = http_rpc_client.fee_history().await?;

let (eth_l1_gas_price, eth_l1_data_gas_price) = self.compute_eth_gas_prices_from_history(fee_history)?;

Expand Down
4 changes: 2 additions & 2 deletions crates/orchestrator/src/rpc/l1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ use super::{HttpRpcClient, RpcResponse};
#[automock]
#[async_trait]
pub trait L1HttpRpcRequests {
async fn get_eth_fee_history(&self) -> Result<EthFeeHistory>;
async fn fee_history(&self) -> Result<EthFeeHistory>;
}

#[async_trait]
impl L1HttpRpcRequests for HttpRpcClient {
async fn get_eth_fee_history(&self) -> Result<EthFeeHistory> {
async fn fee_history(&self) -> Result<EthFeeHistory> {
let rpc_request = json!(
{
"id": 83,
Expand Down

0 comments on commit 8919ed0

Please sign in to comment.