Skip to content

Commit

Permalink
fixes deposits from the native bridge contract
Browse files Browse the repository at this point in the history
  • Loading branch information
debjit-bw committed Jan 3, 2025
1 parent e4525bd commit fe77531
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gnosis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ where
.zip(result.rewardsNative.iter())
{
// TODO: .to panics if the return value is too large
balance_increments.insert(*address, amount.to::<u128>());
balance_increments
.entry(*address)
.and_modify(|e| *e += amount.to::<u128>())
.or_insert_with(|| amount.to::<u128>());
}

Ok(balance_increments)
Expand Down

0 comments on commit fe77531

Please sign in to comment.