Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Expose load_osmosis_gas_base_fee to public #73

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions packages/cosmos/src/gas_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ impl OsmosisGasPrice {
}

/// Loads current eip base fee from Osmosis txfees module
pub(crate) async fn load_osmosis_gas_base_fee(
cosmos: &Cosmos,
) -> Result<f64, LoadOsmosisGasPriceError> {
pub async fn load_osmosis_gas_base_fee(cosmos: &Cosmos) -> Result<f64, LoadOsmosisGasPriceError> {
let TxFeesInfo { eip_base_fee } = cosmos.get_osmosis_txfees_info().await?;
let base_fee: f64 = eip_base_fee.to_string().parse()?;

Expand All @@ -162,7 +160,7 @@ pub(crate) async fn load_osmosis_gas_base_fee(

#[derive(thiserror::Error, Debug)]
/// Verbose error for the gas price base fee request
pub(crate) enum LoadOsmosisGasPriceError {
pub enum LoadOsmosisGasPriceError {
#[error(transparent)]
/// TxFees error
TxFees(#[from] crate::Error),
Expand Down
Loading