From 8919ed0f23d19977403a65a66d047d94acd69359 Mon Sep 17 00:00:00 2001 From: akhercha Date: Mon, 22 Jul 2024 17:58:00 +0200 Subject: [PATCH] feat(snos_job): Quick renaming --- crates/orchestrator/src/jobs/snos_job/mod.rs | 2 +- crates/orchestrator/src/rpc/l1.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/orchestrator/src/jobs/snos_job/mod.rs b/crates/orchestrator/src/jobs/snos_job/mod.rs index 83ccdae9..a25deadd 100644 --- a/crates/orchestrator/src/jobs/snos_job/mod.rs +++ b/crates/orchestrator/src/jobs/snos_job/mod.rs @@ -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 { 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)?; diff --git a/crates/orchestrator/src/rpc/l1.rs b/crates/orchestrator/src/rpc/l1.rs index 72eb4e37..00735813 100644 --- a/crates/orchestrator/src/rpc/l1.rs +++ b/crates/orchestrator/src/rpc/l1.rs @@ -9,12 +9,12 @@ use super::{HttpRpcClient, RpcResponse}; #[automock] #[async_trait] pub trait L1HttpRpcRequests { - async fn get_eth_fee_history(&self) -> Result; + async fn fee_history(&self) -> Result; } #[async_trait] impl L1HttpRpcRequests for HttpRpcClient { - async fn get_eth_fee_history(&self) -> Result { + async fn fee_history(&self) -> Result { let rpc_request = json!( { "id": 83,