From b1f11a95f396b73b9613a7180ee0a5590bda00b5 Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Fri, 3 Jun 2022 15:32:46 +0200 Subject: [PATCH] =?UTF-8?q?fix(runtime):=C2=A0fix=20#46?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pallets/duniter-account/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/duniter-account/src/lib.rs b/pallets/duniter-account/src/lib.rs index 4415778cc..87ce357ff 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 -- GitLab