Skip to content

Commit 0608d7d

Browse files
committed
Merge branch 'nextarrow'
2 parents cdce7cd + 0b29612 commit 0608d7d

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

src/rust/bitbox02-rust/src/hww/api/backup.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,22 @@ pub async fn check(
3939
return Err(Error::Generic);
4040
}
4141
if !silent {
42-
let params = confirm::Params {
42+
confirm::confirm(&confirm::Params {
4343
title: "Name?",
4444
body: &metadata.name,
4545
scrollable: true,
46+
accept_is_nextarrow: true,
4647
..Default::default()
47-
};
48-
49-
confirm::confirm(&params).await?;
48+
})
49+
.await?;
5050

51-
let params = confirm::Params {
51+
confirm::confirm(&confirm::Params {
5252
title: "ID?",
5353
body: &id,
5454
scrollable: true,
5555
..Default::default()
56-
};
57-
58-
confirm::confirm(&params).await?;
56+
})
57+
.await?;
5958

6059
status::status("Backup valid", true).await;
6160
}

src/rust/bitbox02-rust/src/hww/api/bitcoin/signtx.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ async fn _process(request: &pb::BtcSignInitRequest) -> Result<Response, Error> {
700700
confirm::confirm(&confirm::Params {
701701
title: "Warning",
702702
body: &format!("There are {}\nchange outputs.\nProceed?", num_changes),
703+
accept_is_nextarrow: true,
703704
..Default::default()
704705
})
705706
.await?;
@@ -729,6 +730,7 @@ async fn _process(request: &pb::BtcSignInitRequest) -> Result<Response, Error> {
729730
""
730731
}
731732
),
733+
accept_is_nextarrow: true,
732734
..Default::default()
733735
})
734736
.await?;

src/rust/bitbox02-rust/src/hww/api/ethereum/keypath.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@ pub async fn warn_unusual_keypath(
4242
"Unusual keypath warning: {}. Proceed only if you know what you are doing.",
4343
util::bip32::to_string(keypath)
4444
);
45-
let params = confirm::Params {
45+
return Ok(confirm::confirm(&confirm::Params {
4646
title,
4747
body: &body,
4848
title_autowrap: true,
4949
scrollable: true,
50+
accept_is_nextarrow: true,
5051
..Default::default()
51-
};
52-
return Ok(confirm::confirm(&params).await?);
52+
})
53+
.await?);
5354
}
5455
Ok(())
5556
}

src/rust/bitbox02-rust/src/hww/api/restore.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ pub async fn from_mnemonic(
9393
#[cfg(feature = "app-u2f")]
9494
{
9595
let datetime_string = bitbox02::format_datetime(timestamp, timezone_offset, false);
96-
let params = confirm::Params {
96+
confirm::confirm(&confirm::Params {
9797
title: "Is now?",
9898
body: &datetime_string,
99+
accept_is_nextarrow: true,
99100
..Default::default()
100-
};
101-
confirm::confirm(&params).await?;
101+
})
102+
.await?;
102103
}
103104

104105
let mnemonic = mnemonic::get().await?;

0 commit comments

Comments
 (0)