From 87eca056a3a6f1f27e053fe0f70f03f2f95b5a2f Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Thu, 23 Jan 2025 17:25:41 +0300 Subject: [PATCH] usage of active era for reward points and bump version Signed-off-by: Uncle Stretch --- Cargo.toml | 2 +- src/components/wallet/mod.rs | 2 +- src/network/predefined_calls.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5dee08a..4ba5534 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "ghost-eye" authors = ["str3tch "] description = "Application for interacting with Casper/Ghost nodes that are exposing RPC only to the localhost" -version = "0.3.14" +version = "0.3.15" edition = "2021" [dependencies] diff --git a/src/components/wallet/mod.rs b/src/components/wallet/mod.rs index c989e3f..17f38d5 100644 --- a/src/components/wallet/mod.rs +++ b/src/components/wallet/mod.rs @@ -139,7 +139,7 @@ impl Component for Wallet { component.handle_key_event(key)?; } } - }, + }, _ => match key.code { KeyCode::Esc => { self.is_active = false; diff --git a/src/network/predefined_calls.rs b/src/network/predefined_calls.rs index 2f175df..33fba45 100644 --- a/src/network/predefined_calls.rs +++ b/src/network/predefined_calls.rs @@ -307,8 +307,9 @@ pub async fn get_current_validator_reward_in_era( action_tx: &UnboundedSender, api: &OnlineClient, ) -> Result<()> { - let era_index = super::raw_calls::staking::current_era(api, None) + let era_index = super::raw_calls::staking::active_era(api, None) .await? + .map(|era_info| era_info.index) .unwrap_or_default(); let disabled_validators = super::raw_calls::staking::disabled_validators(api, None)