File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
relayer/crates/starknet-chain-components/src/types/cosmos Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ impl Transformer for EncodeClientStatus {
157
157
}
158
158
}
159
159
160
- impl From < CometClientState > for Any {
160
+ impl From < CometClientState > for IbcCometClientState {
161
161
fn from ( client_state : CometClientState ) -> Self {
162
162
IbcCometClientState :: new (
163
163
client_state. chain_id ,
@@ -178,15 +178,12 @@ impl From<CometClientState> for Any {
178
178
} ,
179
179
)
180
180
. expect ( "no error" )
181
- . into ( )
182
181
}
183
182
}
184
183
185
- impl From < CometClientState > for IbcCometClientState {
186
- fn from ( value : CometClientState ) -> Self {
187
- Any :: from ( value)
188
- . try_into ( )
189
- . expect ( "valid tendermint client state" )
184
+ impl From < CometClientState > for Any {
185
+ fn from ( client_state : CometClientState ) -> Self {
186
+ IbcCometClientState :: from ( client_state) . into ( )
190
187
}
191
188
}
192
189
You can’t perform that action at this time.
0 commit comments