Skip to content

Commit

Permalink
fix: broadcast_and_retrieve_asset_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielides committed Nov 1, 2024
1 parent fa5a69d commit bd9c061
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/platform/identity/register_identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ impl AppContext {

let sdk = &self.sdk;

let block_hash = sdk
let response = sdk
.execute(GetBlockchainStatusRequest {}, RequestSettings::default())
.await?
.chain
.map(|chain| chain.best_block_hash)
.await?;

let block_hash = response.chain.map(|chain| chain.best_block_hash)
.ok_or_else(|| dash_sdk::Error::DapiClientError("Missing `chain` field".to_owned()))?;

// tracing::debug!(
Expand Down

0 comments on commit bd9c061

Please sign in to comment.