Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
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
Update frame/assets/src/lib.rs
  • Loading branch information
bkchr authored Mar 2, 2023
commit c4772db385bc448a9239c87e7981f43b9ab9f8fa
3 changes: 1 addition & 2 deletions frame/assets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1540,10 +1540,9 @@ pub mod pallet {
ensure!(origin == details.owner, Error::<T, I>::NoPermission);

let old_min_balance = details.min_balance;
let is_sufficient = details.is_sufficient;
// If the asset is marked as sufficient it won't be allowed to
// change the min_balance.
ensure!(!is_sufficient, Error::<T, I>::NoPermission);
ensure!(!details.is_sufficient, Error::<T, I>::NoPermission);

// Ensure that either the new min_balance is less than old
// min_balance or there aren't any accounts holding the asset.
Expand Down