fix: adjust errors on keys module

This commit is contained in:
thunderbiscuit 2024-04-29 09:47:37 -04:00
parent 262704751c
commit 8130a419f2
No known key found for this signature in database
GPG Key ID: 88253696EB836462
2 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ impl Transaction {
} }
pub fn weight(&self) -> u64 { pub fn weight(&self) -> u64 {
self.inner.weight().to_wu() self.0.weight().to_wu()
} }
pub fn total_size(&self) -> u64 { pub fn total_size(&self) -> u64 {

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 descriptor_secret_key = &self.0;
let path = path.inner_mutex.lock().unwrap().deref().clone(); let path = path.inner_mutex.lock().unwrap().deref().clone();
match descriptor_secret_key { 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 descriptor_public_key = &self.0;
let path = path.inner_mutex.lock().unwrap().deref().clone(); let path = path.inner_mutex.lock().unwrap().deref().clone();
match descriptor_public_key { match descriptor_public_key {