Merge #1588: Reword warning for non-unique provider key kind

d4dd7b3dbf4ab287f7e289b5b49d244fb6b44868 Reword warning for non-unique provider key kind (Michael Mallan)

Pull request description:

  This simplifies the warning message for the user in case a fetched provider key (more precisely, any key with the same fingerprint) has already been added to the wallet (as a different key kind).

ACKs for top commit:
  edouardparis:
    ACK d4dd7b3dbf4ab287f7e289b5b49d244fb6b44868

Tree-SHA512: b009955694a96e1a8929fbbd5a6254bc1ec227e0ad3de29018738c5aaa868f64892f84a726cc87fa1a72ef15bc290fed2fa971a0516b058a02c143b9c26a6803
This commit is contained in:
edouardparis 2025-03-18 15:51:00 +01:00
commit 6d26f5278d
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

View File

@ -266,7 +266,10 @@ impl super::DescriptorEditModal for EditXpubModal {
&& existing.source.provider_key_kind()
!= key.source.provider_key_kind()
}) {
Some("Two keys with the same fingerprint must have the same provider key kind.".to_string())
Some(
"Fetched key has already been added to the wallet."
.to_string(),
)
} else {
None
};