refactor: Implement Default for WalletUpdate

This commit is contained in:
Vladimir Fomene
2023-08-25 12:49:29 +03:00
committed by 志宇
parent f42f8b8ff1
commit a28748c339
3 changed files with 7 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ async 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)?;
wallet.commit()?;

View File

@@ -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)?;