Skip to content

Commit

Permalink
fix: adjust errors on keys module
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Apr 29, 2024
1 parent 2627047 commit 8130a41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bdk-ffi/src/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions bdk-ffi/src/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8130a41

Please sign in to comment.