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
4 changes: 1 addition & 3 deletions packages/rs-platform-wallet-ffi/src/dashpay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,9 +1334,7 @@ mod tests {
fn get_managed_identity_unknown_wallet_is_invalid_handle() {
let id = [0u8; 32];
let mut out: Handle = 0;
let r = unsafe {
platform_wallet_get_managed_identity(0xDEAD_BEEF, id.as_ptr(), &mut out)
};
let r = unsafe { platform_wallet_get_managed_identity(0xDEAD_BEEF, id.as_ptr(), &mut out) };
assert_eq!(r.code, PlatformWalletFFIResultCode::ErrorInvalidHandle);
assert_eq!(out, 0, "out handle is untouched on an invalid-handle miss");
}
Expand Down
12 changes: 10 additions & 2 deletions packages/rs-sdk-ffi/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,9 @@ pub unsafe extern "C" fn dash_sdk_sign_async_completion(
// to begin with the marker would otherwise impersonate a typed
// completion, so disambiguate it by pushing the marker off
// position 0 (dashpay/platform#4183 review).
Err(ProtocolError::Generic(format!("generic_signer_error: {msg}")))
Err(ProtocolError::Generic(format!(
"generic_signer_error: {msg}"
)))
} else {
Err(ProtocolError::Generic(msg))
}
Expand Down Expand Up @@ -1348,7 +1350,13 @@ mod tests {
completion(completion_ctx, std::ptr::null(), 0, 0, err_msg.as_ptr());
// Duplicate success payload — still a no-op.
let sig2 = [0x99u8; 64];
completion(completion_ctx, sig2.as_ptr(), sig2.len(), 0, std::ptr::null());
completion(
completion_ctx,
sig2.as_ptr(),
sig2.len(),
0,
std::ptr::null(),
);
}

#[tokio::test]
Expand Down
Loading