add ledger version support for tapminiscript
This commit is contained in:
parent
2debb32181
commit
02a52b98bc
@ -676,7 +676,15 @@ fn ledger_version_supported(version: Option<&Version>) -> bool {
|
||||
|
||||
// Kind and minimal version of devices supporting tapminiscript.
|
||||
// We cannot use a lazy_static HashMap yet, because DeviceKind does not implement Hash.
|
||||
const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option<Version>); 0] = [];
|
||||
const DEVICES_COMPATIBLE_WITH_TAPMINISCRIPT: [(DeviceKind, Option<Version>); 1] = [(
|
||||
DeviceKind::Ledger,
|
||||
Some(Version {
|
||||
major: 2,
|
||||
minor: 2,
|
||||
patch: 0,
|
||||
prerelease: None,
|
||||
}),
|
||||
)];
|
||||
|
||||
pub fn is_compatible_with_tapminiscript(
|
||||
device_kind: &DeviceKind,
|
||||
|
||||
@ -1755,6 +1755,7 @@ mod tests {
|
||||
"My Specter key".to_string(),
|
||||
DescriptorPublicKey::from_str("[4df3f0e3/84'/0'/0']tpubDDRs9DnRUiJc4hq92PSJKhfzQBgHJUrDo7T2i48smsDfLsQcm3Vh7JhuGqJv8zozVkNFin8YPgpmn2NWNmpRaE3GW2pSxbmAzYf2juy7LeW").unwrap(),
|
||||
Some(DeviceKind::Specter),
|
||||
None,
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user