referrerpolicy=no-referrer-when-downgrade
pub fn transfer_expendable_dust<T, AccountId>(dust_trap: Option<AccountId>)
where T: Mutate<AccountId>, <T as Inspect<AccountId>>::Balance: AtLeast8BitUnsigned + Debug, AccountId: AtLeast8BitUnsigned,
Expand description

Test calling Mutate::transfer function with Preservation::Expendable and an amount that results in some dust.

This test verifies that dust is handled correctly when an account is reaped, with and without a dust trap.

§Parameters

  • dust_trap: An optional account identifier to which dust will be collected. If None, dust is expected to be removed from the total and active issuance.