fix: adjust errors on keys module

This commit is contained in:
thunderbiscuit committed 2024-04-29 09:47:37 -04:00
1 parent 262704751c
commit 8130a419f2
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ impl Transaction {
}
pub fn weight(&self) -> u64 {
self.inner.weight().to_wu()
self.0.weight().to_wu()
}
pub fn total_size(&self) -> u64 {
+2 -2
View File
@@ -113,7 +113,7 @@ impl DescriptorSecretKey {
}
}
pub(crate) fn extend(&self, path: &DerivationPath) -> Result<Arc<Self>, Alpha3Error> {
pub(crate) fn extend(&self, path: &DerivationPath) -> Result<Arc<Self>, DescriptorKeyError> {
let descriptor_secret_key = &self.0;
let path = path.inner_mutex.lock().unwrap().deref().clone();
match descriptor_secret_key {
@@ -198,7 +198,7 @@ impl DescriptorPublicKey {
}
}
pub(crate) fn extend(&self, path: &DerivationPath) -> Result<Arc<Self>, Alpha3Error> {
pub(crate) fn extend(&self, path: &DerivationPath) -> Result<Arc<Self>, DescriptorKeyError> {
let descriptor_public_key = &self.0;
let path = path.inner_mutex.lock().unwrap().deref().clone();
match descriptor_public_key {