Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenwang1996 committed Jul 1, 2021
1 parent d95a1ed commit 77aeb74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/runtime/src/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,13 @@ impl<'a> External for RuntimeExt<'a> {

fn validator_stake(&self, account_id: &AccountId) -> ExtResult<Option<Balance>> {
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<Balance> {
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())
}
}

0 comments on commit 77aeb74

Please sign in to comment.