From fd46614bc7a90f64fd876a73b9bb5844cfe00872 Mon Sep 17 00:00:00 2001 From: Debjit Bhowal Date: Tue, 7 Jan 2025 17:42:34 +0530 Subject: [PATCH] fix - add multiple deposits from native bridge contract instead of replacing (#44) * fixes deposits from the native bridge contract * functional modification --- src/gnosis.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gnosis.rs b/src/gnosis.rs index abe58bb..d8b36f2 100644 --- a/src/gnosis.rs +++ b/src/gnosis.rs @@ -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::()); + *balance_increments.entry(*address).or_default() += amount.to::(); } Ok(balance_increments)