Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
permissions:
id-token: write
attestations: write
contents: write

jobs:
build-and-release:
Expand Down
12 changes: 6 additions & 6 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.inner.chain.map(|chain| chain.best_block_hash)
.ok_or_else(|| dash_sdk::Error::DapiClientError("Missing `chain` field".to_owned()))?;

// tracing::debug!(
Expand All @@ -67,7 +67,7 @@ impl AppContext {
Err(error) if error.to_string().contains("AlreadyExists") => {
// tracing::warn!("Transaction already broadcasted.");

let GetTransactionResponse { block_hash, .. } = sdk
let response = sdk
.execute(
GetTransactionRequest {
id: asset_lock_transaction.txid().to_string(),
Expand All @@ -82,7 +82,7 @@ impl AppContext {
// );

asset_lock_stream = sdk
.start_instant_send_lock_stream(block_hash, address)
.start_instant_send_lock_stream(response.inner.block_hash, address)
.await?;

// tracing::debug!("Stream restarted.");
Expand Down