1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! gear api constants methods
use crate::{api::Api, result::Result};

impl Api {
    /// pallet gas constants
    ///
    /// get gas limit
    pub async fn gas_limit(&self) -> Result<u64> {
        self.constants()
            .gear_gas()
            .block_gas_limit()
            .map_err(Into::into)
    }
}