Skip to content

Commit

Permalink
gui(lianalite): use is_from_self from response
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Dec 12, 2024
1 parent 8d99981 commit 715aeb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions liana-gui/src/lianalite/client/backend/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ pub struct Coin {
pub spend_info: Option<CoinSpendInfo>,
pub is_immature: bool,
pub is_change_address: bool,
pub is_from_self: bool,
}

#[derive(Clone, Deserialize)]
Expand Down
6 changes: 3 additions & 3 deletions liana-gui/src/lianalite/client/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ impl Daemon for BackendWalletClient {
txid: info.txid,
height: info.height,
}),
is_from_self: false, // FIXME: use value from backend
is_from_self: c.is_from_self,
})
.collect(),
})
Expand Down Expand Up @@ -1134,7 +1134,7 @@ fn history_tx_from_api(value: api::Transaction, network: Network) -> HistoryTran
txid: info.txid,
height: info.height,
}),
is_from_self: false, // FIXME: use value from backend
is_from_self: c.is_from_self,
});
}
}
Expand Down Expand Up @@ -1190,7 +1190,7 @@ fn spend_tx_from_api(
txid: info.txid,
height: info.height,
}),
is_from_self: false, // FIXME: use value from backend
is_from_self: c.is_from_self,
});
}
}
Expand Down

0 comments on commit 715aeb9

Please sign in to comment.