diff --git a/runtime/runtime/src/ext.rs b/runtime/runtime/src/ext.rs index 6360905323d..c5463f6d98e 100644 --- a/runtime/runtime/src/ext.rs +++ b/runtime/runtime/src/ext.rs @@ -375,13 +375,13 @@ impl<'a> External for RuntimeExt<'a> { fn validator_stake(&self, account_id: &AccountId) -> ExtResult> { self.epoch_info_provider - .validator_stake(self.epoch_id, self.last_block_hash, account_id) + .validator_stake(self.epoch_id, self.prev_block_hash, account_id) .map_err(|e| ExternalError::ValidatorError(e).into()) } fn validator_total_stake(&self) -> ExtResult { self.epoch_info_provider - .validator_total_stake(self.epoch_id, self.last_block_hash) + .validator_total_stake(self.epoch_id, self.prev_block_hash) .map_err(|e| ExternalError::ValidatorError(e).into()) } }