We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa5a69d commit bd9c061Copy full SHA for bd9c061
src/platform/identity/register_identity.rs
@@ -36,11 +36,11 @@ impl AppContext {
36
37
let sdk = &self.sdk;
38
39
- let block_hash = sdk
+ let response = sdk
40
.execute(GetBlockchainStatusRequest {}, RequestSettings::default())
41
- .await?
42
- .chain
43
- .map(|chain| chain.best_block_hash)
+ .await?;
+
+ let block_hash = response.chain.map(|chain| chain.best_block_hash)
44
.ok_or_else(|| dash_sdk::Error::DapiClientError("Missing `chain` field".to_owned()))?;
45
46
// tracing::debug!(
0 commit comments