From cd4005e527ef3ac927931cef0964cf94f77a4244 Mon Sep 17 00:00:00 2001 From: DrZoltanFazekas Date: Thu, 22 Aug 2024 08:30:00 +0200 Subject: [PATCH] add contract address to filters --- bridge-validators/src/bridge_node.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridge-validators/src/bridge_node.rs b/bridge-validators/src/bridge_node.rs index ccd569a..c4b60cb 100644 --- a/bridge-validators/src/bridge_node.rs +++ b/bridge-validators/src/bridge_node.rs @@ -76,7 +76,7 @@ impl BridgeNode { { self.chain_client .get_events( - event.filter, + event.filter.address(self.chain_client.chain_gateway_address), self.chain_client.chain_gateway_block_deployed.into(), to_block, ) @@ -138,8 +138,8 @@ impl BridgeNode { let chain_gateway: ChainGateway = self.chain_client.get_contract(); // TODO: polling finalized events - let relayed_filter = chain_gateway.event::().filter; - let dispatched_filter = chain_gateway.event::().filter; + let relayed_filter = chain_gateway.event::().filter.address(self.chain_client.chain_gateway_address); + let dispatched_filter = chain_gateway.event::().filter.address(self.chain_client.chain_gateway_address); let relayed_listener: EventListener = EventListener::new(self.chain_client.clone(), relayed_filter);