Skip to content

Commit

Permalink
add contract address to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
DrZoltanFazekas committed Aug 22, 2024
1 parent 94a1e81 commit cd4005e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridge-validators/src/bridge_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -138,8 +138,8 @@ impl BridgeNode {
let chain_gateway: ChainGateway<Client> = self.chain_client.get_contract();

// TODO: polling finalized events
let relayed_filter = chain_gateway.event::<RelayedFilter>().filter;
let dispatched_filter = chain_gateway.event::<DispatchedFilter>().filter;
let relayed_filter = chain_gateway.event::<RelayedFilter>().filter.address(self.chain_client.chain_gateway_address);
let dispatched_filter = chain_gateway.event::<DispatchedFilter>().filter.address(self.chain_client.chain_gateway_address);

let relayed_listener: EventListener<RelayedFilter> =
EventListener::new(self.chain_client.clone(), relayed_filter);
Expand Down

0 comments on commit cd4005e

Please sign in to comment.