Function frame_support::traits::tokens::fungible::conformance_tests::inspect_mutate::burn_from_exact_insufficient_funds
source · pub fn burn_from_exact_insufficient_funds<T, AccountId>(
_dust_trap: Option<AccountId>,
)where
T: Mutate<AccountId>,
<T as Inspect<AccountId>>::Balance: AtLeast8BitUnsigned + Debug,
AccountId: AtLeast8BitUnsigned,
Expand description
Test the burn_from
function for handling insufficient funds with Precision::Exact
.
This test verifies that burning an amount greater than the account’s balance with
Precision::Exact
returns an error and does not change the account balance or total issuance
values.
§Type Parameters
- `T`: Implements `Mutate<AccountId>`.
- `AccountId`: Account identifier implementing `AtLeast8BitUnsigned`.