mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 11:38:01 +00:00
Use EncodeLike for storages traits (#3676)
* impl * patch * lock * some refactor * some avoided copy * new api without ref for doublemap * fix * version bump * fix * point to incoming release * use codec latest * bumpd impl version * fix unused * fix * Update srml/support/src/storage/mod.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
committed by
Bastian Köcher
parent
83d4764d46
commit
53e0ddee4e
@@ -722,7 +722,7 @@ decl_module! {
|
||||
|
||||
// You're auto-bonded forever, here. We might improve this by only bonding when
|
||||
// you actually validate/nominate and remove once you unbond __everything__.
|
||||
<Bonded<T>>::insert(&stash, controller.clone());
|
||||
<Bonded<T>>::insert(&stash, &controller);
|
||||
<Payee<T>>::insert(&stash, payee);
|
||||
|
||||
let stash_balance = T::Currency::free_balance(&stash);
|
||||
@@ -1339,7 +1339,7 @@ impl<T: Trait> Module<T> {
|
||||
if exposure.total < slot_stake {
|
||||
slot_stake = exposure.total;
|
||||
}
|
||||
<Stakers<T>>::insert(c.clone(), exposure.clone());
|
||||
<Stakers<T>>::insert(&c, exposure.clone());
|
||||
}
|
||||
|
||||
// Update slot stake.
|
||||
|
||||
Reference in New Issue
Block a user