diff --git a/sdk/src/types/block/output/feature/mod.rs b/sdk/src/types/block/output/feature/mod.rs index bcff97711b..eed47ced38 100644 --- a/sdk/src/types/block/output/feature/mod.rs +++ b/sdk/src/types/block/output/feature/mod.rs @@ -164,7 +164,7 @@ crate::create_bitflags!( ] ); -pub(crate) type FeatureCount = BoundedU8<0, { Features::COUNT_MAX }>; +pub(crate) type FeatureCount = BoundedU8<0, { FeatureFlags::ALL_FLAGS.len() as u8 }>; /// #[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Deref, Packable)] @@ -199,9 +199,6 @@ impl IntoIterator for Features { } impl Features { - /// - pub const COUNT_MAX: u8 = 5; - /// Creates a new [`Features`] from a vec. pub fn from_vec(features: Vec) -> Result { let mut features = BoxedSlicePrefix::::try_from(features.into_boxed_slice()) diff --git a/sdk/src/types/block/output/unlock_condition/mod.rs b/sdk/src/types/block/output/unlock_condition/mod.rs index 3791fcdf49..89d40b21db 100644 --- a/sdk/src/types/block/output/unlock_condition/mod.rs +++ b/sdk/src/types/block/output/unlock_condition/mod.rs @@ -155,7 +155,7 @@ crate::create_bitflags!( ] ); -pub(crate) type UnlockConditionCount = BoundedU8<0, { UnlockConditions::COUNT_MAX }>; +pub(crate) type UnlockConditionCount = BoundedU8<0, { UnlockConditionFlags::ALL_FLAGS.len() as u8 }>; /// #[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Deref, Packable)] @@ -193,9 +193,6 @@ impl IntoIterator for UnlockConditions { } impl UnlockConditions { - /// - pub const COUNT_MAX: u8 = 7; - /// Creates a new [`UnlockConditions`] from a vec. pub fn from_vec(unlock_conditions: Vec) -> Result { let mut unlock_conditions =