Skip to content

Commit 3ddad5f

Browse files
pravin-dPravin D
andauthored
Fix for 183 (#184)
Co-authored-by: Pravin D <[email protected]>
1 parent e37d4ce commit 3ddad5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/dipdup/index.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,9 @@ async def _match_operation(self, pattern_config: OperationHandlerPatternConfigT,
378378
"""Match single operation with pattern"""
379379
# NOTE: Reversed conditions are intentional
380380
if isinstance(pattern_config, OperationHandlerTransactionPatternConfig):
381-
if pattern_config.entrypoint != operation.entrypoint:
382-
return False
381+
if pattern_config.entrypoint:
382+
if pattern_config.entrypoint != operation.entrypoint:
383+
return False
383384
if pattern_config.destination:
384385
if pattern_config.destination_contract_config.address != operation.target_address:
385386
return False

0 commit comments

Comments
 (0)