Skip to content

Commit 70a6fe5

Browse files
committed
Fixed undefined blob error.
1 parent d48c9c6 commit 70a6fe5

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

deps/ledger-secure-sdk

Submodule ledger-secure-sdk updated 60 files

rs/src/lib.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,16 +618,20 @@ where
618618

619619
/// Clean buffers
620620
pub async fn clean_randomness_buffers(&self) -> Result<(), NamError<E::Error>> {
621-
let start_command = APDUCommand {
621+
let arr: &[u8] = &[];
622+
let command = APDUCommand {
622623
cla: CLA,
623624
ins: InstructionCode::CleanBuffers as _,
624625
p1: ChunkPayloadType::Init as u8,
625626
p2: 0x00,
626-
data: &[], // Send empty data
627+
data: arr, // Send empty data
627628
};
628629

629-
let response =
630-
<Self as AppExt<E>>::send_chunks(&self.apdu_transport, start_command, blob).await?;
630+
self
631+
.apdu_transport
632+
.exchange(&command)
633+
.await
634+
.map_err(LedgerAppError::TransportError)?;
631635

632636
Ok(())
633637
}

0 commit comments

Comments
 (0)