mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 03:27:58 +00:00
[Fix] Remove redundant stash from Stake (#13907)
* [Fix] Remove redundant stash from Stake * fix tests
This commit is contained in:
@@ -1611,7 +1611,7 @@ impl<T: Config> StakingInterface for Pallet<T> {
|
||||
fn stake(who: &Self::AccountId) -> Result<Stake<Self>, DispatchError> {
|
||||
Self::bonded(who)
|
||||
.and_then(|c| Self::ledger(c))
|
||||
.map(|l| Stake { stash: l.stash, total: l.total, active: l.active })
|
||||
.map(|l| Stake { total: l.total, active: l.active })
|
||||
.ok_or(Error::<T>::NotStash.into())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user