Skip to content

Commit

Permalink
replace client with wait_client
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola committed Jan 29, 2025
1 parent 1b3d435 commit 0b102d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/examples/examples/para_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async fn main() -> Result<(), anyhow::Error> {
// get current runtime spec
let client = network
.get_node("collator")?
.client::<subxt::PolkadotConfig>()
.wait_client::<subxt::PolkadotConfig>()
.await?;
let current_runtime = client.backend().current_runtime_version().await?;
println!(
Expand Down
2 changes: 1 addition & 1 deletion crates/examples/examples/simple_network_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

let client = network
.get_node("collator01")?
.client::<subxt::PolkadotConfig>()
.wait_client::<subxt::PolkadotConfig>()
.await?;
let mut blocks = client.blocks().subscribe_finalized().await?.take(3);

Expand Down

0 comments on commit 0b102d0

Please sign in to comment.