File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
ibc-core/ics03-connection/types/src Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,13 @@ impl Version {
58
58
}
59
59
Ok ( ( ) )
60
60
}
61
+ /// Returns the lists of supported versions
62
+ pub fn compatibles ( ) -> Vec < Self > {
63
+ vec ! [ Self {
64
+ identifier: "1" . to_string( ) ,
65
+ features: vec![ "ORDER_ORDERED" . to_string( ) , "ORDER_UNORDERED" . to_string( ) ] ,
66
+ } ]
67
+ }
61
68
}
62
69
63
70
impl Protobuf < RawVersion > for Version { }
@@ -111,10 +118,7 @@ impl Display for Version {
111
118
112
119
/// Returns the lists of supported versions
113
120
pub fn get_compatible_versions ( ) -> Vec < Version > {
114
- vec ! [ Version {
115
- identifier: "1" . to_string( ) ,
116
- features: vec![ "ORDER_ORDERED" . to_string( ) , "ORDER_UNORDERED" . to_string( ) ] ,
117
- } ]
121
+ Version :: compatibles ( )
118
122
}
119
123
120
124
/// Iterates over the descending ordered set of compatible IBC versions and
You can’t perform that action at this time.
0 commit comments