Skip to content

Commit c343c03

Browse files
committed
mv client creation after contract deploy
1 parent 450b8a3 commit c343c03

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

relayer/crates/starknet-integration-tests/src/tests/light_client.rs

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ fn test_starknet_light_client() -> Result<(), Error> {
116116

117117
let starknet_chain = &mut starknet_chain_driver.chain;
118118

119-
// just waiting for the chains to progress
120-
// Starknet block height starts at zero
121-
runtime.sleep(Duration::from_secs(2)).await;
122-
123-
let cosmos_client_id = StarknetToCosmosRelay::create_client(
124-
DestinationTarget,
125-
cosmos_chain,
126-
starknet_chain,
127-
&StarknetCreateClientPayloadOptions { wasm_code_hash },
128-
&(),
129-
)
130-
.await?;
131-
132-
info!("created client id on Cosmos: {:?}", cosmos_client_id);
133-
134119
let ibc_core_class_hash = {
135120
let contract_path = std::env::var("IBC_CORE_CONTRACT")?;
136121

@@ -210,6 +195,17 @@ fn test_starknet_light_client() -> Result<(), Error> {
210195
info!("IBC register client response: {:?}", response);
211196
}
212197

198+
let cosmos_client_id = StarknetToCosmosRelay::create_client(
199+
DestinationTarget,
200+
cosmos_chain,
201+
starknet_chain,
202+
&StarknetCreateClientPayloadOptions { wasm_code_hash },
203+
&(),
204+
)
205+
.await?;
206+
207+
info!("created client id on Cosmos: {:?}", cosmos_client_id);
208+
213209
let starknet_client_id = StarknetToCosmosRelay::create_client(
214210
SourceTarget,
215211
starknet_chain,

0 commit comments

Comments
 (0)