Skip to content

Commit

Permalink
fix: update latest_balances instead of new_balance (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
thevaibhav-dixit authored Jan 13, 2025
1 parent c0e439a commit 6793442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cala-ledger/src/velocity/balance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl VelocityBalances {
};
let new_snapshot = crate::balance::Balances::update_snapshot(time, balance, entry);
limit.enforce(&ctx, time, &new_snapshot)?;
new_balances.push(new_snapshot);
latest_balance = Some(new_snapshot);
}
if let Some(latest) = latest_balance.take() {
new_balances.push(latest)
Expand Down

0 comments on commit 6793442

Please sign in to comment.