Skip to content

Commit

Permalink
Revert "fix!: don't display sender address as it would crash the app"
Browse files Browse the repository at this point in the history
This reverts commit 2d80148.
  • Loading branch information
Thoralf-M committed Sep 4, 2024
1 parent fe729ce commit 0a7b79c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions rust-app/src/implementation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,27 @@ pub async fn sign_apdu(io: HostIO, settings: Settings) {
if scroller("Transfer", |w| Ok(write!(w, "IOTA")?)).is_none() {
reject::<()>(StatusWords::UserCancelled as u16).await;
};
{
let mut bs = input[1].clone();
NoinlineFut(async move {
let path = BIP_PATH_PARSER.parse(&mut bs).await;
if !is_bip_prefix_valid(&path) {
reject::<()>(SyscallError::InvalidParameter as u16).await;
}
if with_public_keys(&path, true, |_, address: &IotaPubKeyAddress| {
try_option(|| -> Option<()> {
scroller_paginated("From", |w| Ok(write!(w, "{address}")?))?;
Some(())
}())
})
.ok()
.is_none()
{
reject::<()>(StatusWords::UserCancelled as u16).await;
}
})
.await
};

{
let mut txn = input[0].clone();
Expand Down

0 comments on commit 0a7b79c

Please sign in to comment.