refactor: Implement Default for WalletUpdate

This commit is contained in:
Vladimir Fomene authored and 志宇 committed 2023-09-03 01:51:20 +08:00
1 parent f42f8b8ff1
commit a28748c339
3 files changed
+7 -8

No files matched your search

@@ -60,7 +60,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let update = WalletUpdate {
last_active_indices,
graph: update_graph,
..WalletUpdate::new(chain_update)
chain: Some(chain_update),
};
wallet.apply_update(update)?;