parent
ac1f90f1a9
commit
2c4079f4c8
|
@ -229,9 +229,13 @@ impl LedgerWallet {
|
|||
self.write(command, p1, p2, data)?;
|
||||
if p1 == P1_CONFIRM && is_last_part(p2) {
|
||||
println!("Waiting for remote wallet to approve...");
|
||||
}
|
||||
let result = self.read()?;
|
||||
println!("Approved");
|
||||
Ok(result)
|
||||
} else {
|
||||
self.read()
|
||||
}
|
||||
}
|
||||
|
||||
fn _get_firmware_version(&self) -> Result<FirmwareVersion, RemoteWalletError> {
|
||||
let ver = self.send_apdu(commands::GET_APP_CONFIGURATION, 0, 0, &[])?;
|
||||
|
|
Loading…
Reference in New Issue