Skip to content

Commit 61873bc

Browse files
committed
fix: address CI failures from StateTransitionResult refactor
- wasm-sdk broadcast.rs: call .into_inner() on StateTransitionResult before passing to convert_proof_result() - dash-sdk sdk.rs: mark parse_proof and parse_proof_with_metadata as #[allow(dead_code)] (unused after refactor, kept for future use)
1 parent 6a9b5a3 commit 61873bc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/rs-sdk/src/sdk.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ impl Sdk {
248248
///
249249
/// - `R`: Type of the request that was used to fetch the proof.
250250
/// - `O`: Type of the object to be retrieved from the proof.
251+
#[allow(dead_code)]
251252
pub(crate) async fn parse_proof<R, O: FromProof<R> + MockResponse>(
252253
&self,
253254
request: O::Request,
@@ -287,6 +288,7 @@ impl Sdk {
287288
///
288289
/// - `R`: Type of the request that was used to fetch the proof.
289290
/// - `O`: Type of the object to be retrieved from the proof.
291+
#[allow(dead_code)]
290292
pub(crate) async fn parse_proof_with_metadata<R, O: FromProof<R> + MockResponse>(
291293
&self,
292294
request: O::Request,

packages/wasm-sdk/src/state_transitions/broadcast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl WasmSdk {
6969
WasmSdkError::generic(format!("Failed to wait for state transition result: {}", e))
7070
})?;
7171

72-
convert_proof_result(result).map_err(WasmSdkError::from)
72+
convert_proof_result(result.into_inner()).map_err(WasmSdkError::from)
7373
}
7474

7575
/// Broadcasts a state transition and waits for the result.
@@ -96,6 +96,6 @@ impl WasmSdk {
9696
.await
9797
.map_err(|e| WasmSdkError::generic(format!("Failed to broadcast: {}", e)))?;
9898

99-
convert_proof_result(result).map_err(WasmSdkError::from)
99+
convert_proof_result(result.into_inner()).map_err(WasmSdkError::from)
100100
}
101101
}

0 commit comments

Comments
 (0)