remove unnecessary historical raw calls
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
4fc26712a5
commit
08e0f3d576
@ -2,7 +2,7 @@
|
||||
name = "ghost-eye"
|
||||
authors = ["str3tch <stretch@ghostchain.io>"]
|
||||
description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost"
|
||||
version = "0.3.31"
|
||||
version = "0.3.32"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -1,19 +0,0 @@
|
||||
use color_eyre::Result;
|
||||
use subxt::{
|
||||
utils::H256,
|
||||
client::OnlineClient,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
casper_network,
|
||||
CasperConfig,
|
||||
};
|
||||
|
||||
pub async fn stored_range(
|
||||
online_client: &OnlineClient<CasperConfig>,
|
||||
at_hash: Option<&H256>,
|
||||
) -> Result<Option<(u32, u32)>> {
|
||||
let storage_key = casper_network::storage().historical().stored_range();
|
||||
let maybe_stored_range = super::do_storage_call(online_client, &storage_key, at_hash).await?;
|
||||
Ok(maybe_stored_range)
|
||||
}
|
@ -12,7 +12,6 @@ pub mod staking;
|
||||
pub mod system;
|
||||
pub mod babe;
|
||||
pub mod balances;
|
||||
pub mod historical;
|
||||
|
||||
pub async fn do_storage_call<'address, Addr>(
|
||||
online_client: &OnlineClient<CasperConfig>,
|
||||
|
Loading…
Reference in New Issue
Block a user