Skip to content
Snippets Groups Projects
Commit 08ac5ccc authored by Éloïs's avatar Éloïs Committed by Éloïs
Browse files

fix(runtime): fix #46

parent cb7fd382
No related branches found
No related tags found
1 merge request!59Fix #46
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment