Add the trait CheckAccountWorthiness
defined in the pallet-identity
and implemented in the duniter-account
pallet, exposing the Fungible
trait, that checks if an account exists and if this account has enough balance to pay for the entire identity creation process. This will change the identity creation process as follows:
- Create the account by transferring at least twice the existential deposit.
- Create the identity.
Edited by Benjamin Gallois
Merge request reports
Activity
Filter activity
changed milestone to %runtime-802
added RN-runtime label
assigned to @bgallois
requested review from @HugoTrentesaux
463 463 type AutorevocationPeriod = AutorevocationPeriod; 464 464 type DeletionPeriod = DeletionPeriod; 465 465 type CheckIdtyCallAllowed = Wot; 466 type CheckAccountWorthiness = Account; 466 467 type IdtyCreationPeriod = IdtyCreationPeriod; 467 468 type IdtyData = IdtyData; changed this line in version 5 of the diff
As usual, this was a compounded error where a repeating macro could not be formatted (in our case, we can rewrite the code more clearly with a non-repeating macro), along with several long lines. I added
error_on_unformatted = true
, which works, but not within the macro.Edited by Benjamin Gallois
- Resolved by Hugo Trentesaux
Please register or sign in to reply