Skip to content

Commit b1232f5

Browse files
committed
contract: relax Ord requirement for KnownState trait
1 parent 6b93ada commit b1232f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/contract/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl FromStr for Opout {
9595
/// Trait used by contract state. Unlike [`ExposedState`] it doesn't allow
9696
/// concealment of the state, i.e. may contain incomplete data without blinding
9797
/// factors, asset tags etc.
98-
pub trait KnownState: Debug + StrictDumb + StrictEncode + StrictDecode + Ord + Clone {}
98+
pub trait KnownState: Debug + StrictDumb + StrictEncode + StrictDecode + Eq + Clone {}
9999
impl<S: ExposedState> KnownState for S {}
100100

101101
impl KnownState for () {}

0 commit comments

Comments
 (0)