mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-10 04:37:06 +00:00
Allow transfer_keep_alive to transfer all free balance (#8125)
This commit is contained in:
1 parent
84071d6d49
commit
1b2dd6117b
2 files changed
+14
-1
No files matched your search
@@ -1069,7 +1069,7 @@ impl<T: Config<I>, I: 'static> Currency<T::AccountId> for Pallet<T, I> where
|
||||
// may not even be a provider.
|
||||
let allow_death = existence_requirement == ExistenceRequirement::AllowDeath;
|
||||
let allow_death = allow_death && !system::Pallet::<T>::is_provider_required(transactor);
|
||||
ensure!(allow_death || from_account.free >= ed, Error::<T, I>::KeepAlive);
|
||||
ensure!(allow_death || from_account.total() >= ed, Error::<T, I>::KeepAlive);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user