22
33use alloc:: sync:: Arc ;
44use core:: fmt:: Debug ;
5- use ibc:: core:: client:: context:: ClientExecutionContext ;
6- use ibc:: core:: client:: types:: error:: ClientError ;
75
86use basecoin_store:: context:: { ProvableStore , Store } ;
97use basecoin_store:: impls:: SharedStore ;
@@ -12,6 +10,8 @@ use ibc::core::channel::types::channel::ChannelEnd;
1210use ibc:: core:: channel:: types:: commitment:: { AcknowledgementCommitment , PacketCommitment } ;
1311use ibc:: core:: client:: context:: client_state:: { ClientStateExecution , ClientStateValidation } ;
1412use ibc:: core:: client:: context:: consensus_state:: ConsensusState ;
13+ use ibc:: core:: client:: context:: ClientExecutionContext ;
14+ use ibc:: core:: client:: types:: error:: ClientError ;
1515use ibc:: core:: client:: types:: Height ;
1616use ibc:: core:: connection:: types:: ConnectionEnd ;
1717use ibc:: core:: handler:: types:: events:: IbcEvent ;
@@ -180,16 +180,12 @@ impl<S, ACL, ACS> Default for MockIbcStore<S, ACL, ACS>
180180where
181181 S : ProvableStore + Debug + Default ,
182182 ACL : ClientStateValidation < Self > + Clone ,
183- ACS : ConsensusState + Clone ,
183+ ACS : ConsensusState + Clone + Default ,
184184{
185185 fn default ( ) -> Self {
186186 let mut ibc_store = Self :: new ( 0 , S :: default ( ) ) ;
187187 ibc_store. store . commit ( ) . expect ( "no error" ) ;
188- // // FIXME(rano): store a consensus state.
189- // ibc_store.store_host_consensus_state(
190- // ibc_store.store.current_height(),
191- // MockHeader::default().into_consensus_state().into(),
192- // );
188+ ibc_store. store_host_consensus_state ( ibc_store. store . current_height ( ) , ACS :: default ( ) ) ;
193189 ibc_store. store_ibc_commitment_proof (
194190 ibc_store. store . current_height ( ) ,
195191 CommitmentProof :: default ( ) ,
0 commit comments