From d748d7d61b084af712ed70127be7610a8df51d4e Mon Sep 17 00:00:00 2001 From: undercover-cactus Date: Wed, 29 Oct 2025 15:01:10 +0100 Subject: [PATCH] fix: keep slahing mode default to enable (#263) To avoid breaking the tests we should not change the default value for the slashing mode. Bring back `Enabled` as the default slashing mode value. --- .../external-validator-slashes/src/lib.rs | 2 +- test/.papi/metadata/datahaven.scale | Bin 620948 -> 620948 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/pallets/external-validator-slashes/src/lib.rs b/operator/pallets/external-validator-slashes/src/lib.rs index 01dc4c64..025d5a09 100644 --- a/operator/pallets/external-validator-slashes/src/lib.rs +++ b/operator/pallets/external-validator-slashes/src/lib.rs @@ -188,9 +188,9 @@ pub mod pallet { #[apply(derive_storage_traits)] #[derive(MaxEncodedLen, DecodeWithMemTracking, Default)] pub enum SlashingModeOption { + #[default] Enabled, LogOnly, - #[default] Disabled, } diff --git a/test/.papi/metadata/datahaven.scale b/test/.papi/metadata/datahaven.scale index 0139a39e6d324c21b6e2e1da7cd8669a29b61db4..2ea69d167bcc542528f4cda5087b32180dc4c38d 100644 GIT binary patch delta 35 qcmbR8S#`>1)rJF7M2#)7Pc1l7LF~P9L9_c+c}LnyWIfh`3mCz delta 35 qcmbR8S#`>1)rJF7M2#)7Pc1l7LF~P9L9`H+c}LnyWIfi2MXl?