Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
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
4 changes: 3 additions & 1 deletion frame/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ decl_event!(
Transfer(AccountId, AccountId, Balance, Balance),
/// A balance was set by root (who, free, reserved).
BalanceSet(AccountId, Balance, Balance),
/// Some amount was deposited (e.g. for transaction fees).
Deposit(AccountId, Balance),
}
);

Expand Down Expand Up @@ -587,7 +589,7 @@ impl<T: Trait<I>, I: Instance> Module<T, I> {
T::OnFreeBalanceZero::on_free_balance_zero(who);

let mut reserved_balance = Self::reserved_balance(who);

if !dust.is_zero() {
if reserved_balance >= T::ExistentialDeposit::get() {
// any individual account cannot cause overflow in balance.
Expand Down