Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <[email protected]>
  • Loading branch information
gavofyork and gui1117 authored Mar 2, 2021
commit a31055fd8cb1ca03c48725e89d3c4f67b7e051ca
1 change: 1 addition & 0 deletions frame/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ mod migrations {
use super::*;

#[allow(dead_code)]
/// Migrate from unique `u8` reference counting to triple `u32` reference counting.
pub fn migrate_all<T: Config>() -> frame_support::weights::Weight {
Account::<T>::translate::<(T::Index, u8, T::AccountData), _>(|_key, (nonce, rc, data)|
Some(AccountInfo { nonce, consumers: rc as RefCount, providers: 1, sufficients: 0, data })
Expand Down