diff --git a/pallets/duniter-account/src/lib.rs b/pallets/duniter-account/src/lib.rs index 4415778ccff225ffbc539867e4bb4cb671e482bf..87ce357ff61f4db79b72e4a8369dbbca62e3900b 100644 --- a/pallets/duniter-account/src/lib.rs +++ b/pallets/duniter-account/src/lib.rs @@ -162,7 +162,7 @@ pub mod pallet { // If the account is not self-sufficient, it must pay the account creation fees let account_data = frame_system::Pallet::<T>::get(&account_id); let price = T::NewAccountPrice::get(); - if account_data.free > price { + if account_data.free >= T::ExistentialDeposit::get() + price { // The account can pay the new account price, we should: // 1. Increment providers to create the account for frame_system point of view // 2. Withdraw the "new account price" amount