From 2b1484287933dfcdd7e74727df20f0f319e140b4 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 26 Jul 2023 13:22:13 -0700 Subject: [PATCH] check the payment factory address against the log address --- web3_proxy/src/frontend/users/payment.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web3_proxy/src/frontend/users/payment.rs b/web3_proxy/src/frontend/users/payment.rs index 265fabdd..d4629a15 100644 --- a/web3_proxy/src/frontend/users/payment.rs +++ b/web3_proxy/src/frontend/users/payment.rs @@ -312,6 +312,10 @@ pub async fn user_balance_post( continue; } + if log.address != payment_factory_address { + continue; + } + // Parse the log into an event if let Ok(event) = payment_factory_contract .decode_event::(