mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
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:
parent
843502d21a
commit
cf55991351
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue