From cf559913518d59d347a35a07e76f4cb5acd13f00 Mon Sep 17 00:00:00 2001 From: Steve Degosserie <723552+stiiifff@users.noreply.github.com> Date: Thu, 7 Aug 2025 15:54:32 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=94=A8=20Fix=20testnet=20Identity?= =?UTF-8?q?=20pallet's=20configuration=20(#127)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- operator/runtime/testnet/src/configs/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/operator/runtime/testnet/src/configs/mod.rs b/operator/runtime/testnet/src/configs/mod.rs index f61c29dc..6e7d0024 100644 --- a/operator/runtime/testnet/src/configs/mod.rs +++ b/operator/runtime/testnet/src/configs/mod.rs @@ -493,9 +493,7 @@ impl pallet_identity::Config for Runtime { type MaxSubAccounts = MaxSubAccounts; type IdentityInformation = pallet_identity::legacy::IdentityInfo; 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;