Skip to content

Commit

Permalink
fix - add multiple deposits from native bridge contract instead of re…
Browse files Browse the repository at this point in the history
…placing (#44)

* fixes deposits from the native bridge contract

* functional modification
  • Loading branch information
debjit-bw authored Jan 7, 2025
1 parent e4525bd commit fd46614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gnosis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ 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).or_default() += amount.to::<u128>();
}

Ok(balance_increments)
Expand Down

0 comments on commit fd46614

Please sign in to comment.