Skip to content

Commit

Permalink
mv client creation after contract deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Feb 5, 2025
1 parent 450b8a3 commit c343c03
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions relayer/crates/starknet-integration-tests/src/tests/light_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,6 @@ fn test_starknet_light_client() -> Result<(), Error> {

let starknet_chain = &mut starknet_chain_driver.chain;

// just waiting for the chains to progress
// Starknet block height starts at zero
runtime.sleep(Duration::from_secs(2)).await;

let cosmos_client_id = StarknetToCosmosRelay::create_client(
DestinationTarget,
cosmos_chain,
starknet_chain,
&StarknetCreateClientPayloadOptions { wasm_code_hash },
&(),
)
.await?;

info!("created client id on Cosmos: {:?}", cosmos_client_id);

let ibc_core_class_hash = {
let contract_path = std::env::var("IBC_CORE_CONTRACT")?;

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

let cosmos_client_id = StarknetToCosmosRelay::create_client(
DestinationTarget,
cosmos_chain,
starknet_chain,
&StarknetCreateClientPayloadOptions { wasm_code_hash },
&(),
)
.await?;

info!("created client id on Cosmos: {:?}", cosmos_client_id);

let starknet_client_id = StarknetToCosmosRelay::create_client(
SourceTarget,
starknet_chain,
Expand Down

0 comments on commit c343c03

Please sign in to comment.