fix: adjust errors on keys module
This commit is contained in:
parent
262704751c
commit
8130a419f2
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user