Update macro use and optimize storage collection (#13970)

This commit is contained in:
PG Herveou
2023-04-21 17:24:12 +02:00
committed by GitHub
parent 4411e8cec2
commit 0824b060b4
3 changed files with 15 additions and 16 deletions
@@ -293,8 +293,8 @@ where
.total_deposit
.saturating_add(&absorbed.total_deposit)
.saturating_add(&own_deposit);
self.charges.extend_from_slice(&absorbed.charges);
if !own_deposit.is_zero() {
self.charges.extend_from_slice(&absorbed.charges);
self.charges.push(Charge {
deposit_account,
amount: own_deposit,