Skip to content

Commit

Permalink
not needed changeset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
darioAnongba committed Feb 18, 2025
1 parent 190891d commit cfff476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/bitcoin/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ impl Wallet {
self.0.borrow().list_unspent().map(Into::into).collect()
}

pub fn latest_checkpoint(&self) -> CheckPoint {
self.0.borrow().latest_checkpoint().into()
pub fn list_output(&self) -> Vec<LocalOutput> {
self.0.borrow().list_output().map(Into::into).collect()
}

pub fn staged(&self) -> Option<ChangeSet> {
self.0.borrow().staged().map(Into::into)
pub fn latest_checkpoint(&self) -> CheckPoint {
self.0.borrow().latest_checkpoint().into()
}

pub fn take_staged(&self) -> Option<ChangeSet> {
Expand Down
8 changes: 0 additions & 8 deletions src/types/changeset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ impl ChangeSet {
}

/// Create a new `ChangeSet` from a JSON string.
#[wasm_bindgen]
pub fn from_json(val: &str) -> JsResult<ChangeSet> {
Ok(ChangeSet(from_str(val)?))
}

/// Create a new `ChangeSet` from a JS object.
#[wasm_bindgen]
pub fn from_js(js_value: JsValue) -> JsResult<ChangeSet> {
Ok(ChangeSet(from_value(js_value)?))
}
Expand All @@ -63,12 +61,6 @@ impl From<BdkChangeSet> for ChangeSet {
}
}

impl From<&BdkChangeSet> for ChangeSet {
fn from(inner: &BdkChangeSet) -> Self {
ChangeSet(inner.clone())
}
}

impl From<ChangeSet> for BdkChangeSet {
fn from(changeset: ChangeSet) -> Self {
changeset.0
Expand Down

0 comments on commit cfff476

Please sign in to comment.