diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29f921619..3701aaa93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ on: permissions: id-token: write attestations: write + contents: write jobs: build-and-release: diff --git a/src/platform/identity/register_identity.rs b/src/platform/identity/register_identity.rs index e76f001bd..8e36c2310 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.inner.chain.map(|chain| chain.best_block_hash) .ok_or_else(|| dash_sdk::Error::DapiClientError("Missing `chain` field".to_owned()))?; // tracing::debug!( @@ -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(), @@ -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.");