Skip to content

Commit

Permalink
Only compile send_code_update_extrinsic in async compilation mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Aug 2, 2023
1 parent d41b197 commit 9099103
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/examples/runtime_update_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async fn main() {
println!("This example is for async use-cases. Please see runtime_update_sync.rs for the sync implementation.")
}

#[cfg(not(feature = "sync-examples"))]
pub async fn send_code_update_extrinsic(
api: &substrate_api_client::Api<AssetRuntimeConfig, JsonrpseeClient>,
) {
Expand Down

0 comments on commit 9099103

Please sign in to comment.