fix: 🔨 Fix testnet Identity pallet's configuration (#127)

This pull request updates the identity pallet configuration to ensure
that slashed funds are now sent to the treasury, rather than being
discarded. This change is a step towards proper fund management within
the runtime.

Identity pallet configuration update:

* Changed the `Slashed` associated type implementation in the
`pallet_identity::Config` for `Runtime` to use `Treasury`, so that
slashed funds are now sent to the treasury instead of being ignored.
This commit is contained in:
Steve Degosserie 2025-08-07 15:54:32 +03:00 committed by GitHub
parent 843502d21a
commit cf55991351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -493,9 +493,7 @@ impl pallet_identity::Config for Runtime {
type MaxSubAccounts = MaxSubAccounts;
type IdentityInformation = pallet_identity::legacy::IdentityInfo<MaxAdditionalFields>;
type MaxRegistrars = MaxRegistrars;
type Slashed = ();
// TODO: Slashed funds should be sent to the treasury (when added to the runtime)
// type Slashed = Treasury;
type Slashed = Treasury;
type ForceOrigin = IdentityForceOrigin;
type RegistrarOrigin = IdentityRegistrarOrigin;
type OffchainSignature = Signature;