diff --git a/data_structures/src/staking/stake.rs b/data_structures/src/staking/stake.rs
index 07a3404a3..7ddc55460 100644
--- a/data_structures/src/staking/stake.rs
+++ b/data_structures/src/staking/stake.rs
@@ -25,7 +25,9 @@ where
/// The amount of stake and unstake actions.
pub nonce: Nonce,
// These two phantom fields are here just for the sake of specifying generics.
+ #[serde(skip)]
phantom_address: PhantomData
,
+ #[serde(skip)]
phantom_power: PhantomData,
}
diff --git a/node/src/actors/chain_manager/handlers.rs b/node/src/actors/chain_manager/handlers.rs
index 2bf42f960..9cb33fe35 100644
--- a/node/src/actors/chain_manager/handlers.rs
+++ b/node/src/actors/chain_manager/handlers.rs
@@ -1458,7 +1458,7 @@ impl Handler for ChainManager {
fn handle(&mut self, msg: QueryStake, _ctx: &mut Self::Context) -> Self::Result {
// build address from public key hash
- let stakes = self.chain_state.stakes.query_total_stake(msg.key);
+ let stakes = self.chain_state.stakes.query_stakes(msg.key);
stakes.map_err(StakesError::from).map_err(Into::into)
}
diff --git a/node/src/actors/json_rpc/api.rs b/node/src/actors/json_rpc/api.rs
index fe5518412..a3ba3a632 100644
--- a/node/src/actors/json_rpc/api.rs
+++ b/node/src/actors/json_rpc/api.rs
@@ -2226,7 +2226,7 @@ pub async fn query_stakes(params: Result