Skip to content

Commit 5b4349a

Browse files
committed
fix ledger tests
1 parent 89285d1 commit 5b4349a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
run: sudo apt-get update
131131

132132
- name: Install build dependencies
133-
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml pkg-config libssl-dev
133+
run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml pkg-config libssl-dev libdbus-1-dev libusb-1.0-0-dev
134134

135135
- name: Extract required info from Cargo.toml
136136
id: extract_cargo_info

wallet/src/signer/ledger_signer/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,13 @@ where
651651

652652
Ok((sig, SignatureStatus::NotSigned, status))
653653
}
654+
(Some(Destination::AnyoneCanSpend), None) => {
655+
Ok((
656+
Some(InputWitness::NoSignature(None)),
657+
SignatureStatus::NotSigned,
658+
SignatureStatus::FullySigned,
659+
))
660+
}
654661
(Some(destination), None) => {
655662
let standalone = match standalone_inputs.get(&(input_index as u32)).map(|x| x.as_slice()) {
656663
Some([standalone]) => standalone,

wallet/src/signer/ledger_signer/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ async fn setup(
124124

125125
let opts = Options {
126126
model: Model::NanoSP,
127-
api_level: Some("22".to_string()),
127+
api_level: Some("24".to_string()),
128128
seed: Some("abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about".to_string()), // Use a deterministic seed for tests
129129
display: Display::Headless,
130130
apdu_port: Some(1237 + offset),

0 commit comments

Comments
 (0)