From bd9c06163dc4b7c16c9321c8e35f7c217e3b1e14 Mon Sep 17 00:00:00 2001 From: Odysseas Gabrielides Date: Fri, 1 Nov 2024 14:02:21 +0200 Subject: [PATCH] fix: broadcast_and_retrieve_asset_lock --- src/platform/identity/register_identity.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/platform/identity/register_identity.rs b/src/platform/identity/register_identity.rs index b3c4e6a..a726269 100644 --- a/src/platform/identity/register_identity.rs +++ b/src/platform/identity/register_identity.rs @@ -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!(