Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Polkadot v1.7.2 migrations #1849

Merged
merged 7 commits into from
May 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: clippy
  • Loading branch information
wischli committed May 31, 2024
commit 1701762e1c4bca5f95185785c4d7f65864713b54
4 changes: 2 additions & 2 deletions runtime/common/src/migrations/hold_reason.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ where
+ pallet_transfer_allowlist::Config
+ frame_system::Config<AccountId = AccountId>,
{
fn account_can_be_migrated(who: &AccountId, whitelist: &Vec<AccountId>) -> bool {
fn account_can_be_migrated(who: &AccountId, whitelist: &[AccountId]) -> bool {
if !whitelist.iter().any(|a| a == who) {
log::warn!("{LOG_PREFIX} Account {who:?} is skipped due to missing AccountCurrencyTransferAllowance storage entry");
return false;
}

match Holds::<T>::get(who) {
holds if holds.len() == 1 => holds.into_inner()[0].id == (),
holds if holds.len() == 1 => true,
_ => {
log::warn!("{LOG_PREFIX} Account {who:?} does not meet Hold storage assumptions");
false
Expand Down
Loading